forked from Predidit/Kazumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit_page.dart
61 lines (52 loc) · 1.35 KB
/
init_page.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';
class InitPage extends StatefulWidget {
const InitPage({super.key});
@override
State<InitPage> createState() => _InitPageState();
}
class _InitPageState extends State<InitPage> {
@override
void initState() {
_init();
super.initState();
}
_init() {
Modular.to.navigate('/tab/popular/');
}
@override
Widget build(BuildContext context) {
return const RouterOutlet();
}
}
class LoadingWidget extends StatelessWidget {
const LoadingWidget({super.key, required this.value});
final double value;
@override
Widget build(BuildContext context) {
var size = MediaQuery.of(context).size;
return Scaffold(
appBar: AppBar(title: const Text("Kazumi")),
body: Center(
child: SizedBox(
height: 200,
child: Flex(
direction: Axis.vertical,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SizedBox(
width: size.width * 0.6,
child: LinearProgressIndicator(
value: value,
backgroundColor: Colors.black12,
minHeight: 10,
),
),
const Text("初始化中"),
],
),
),
),
);
}
}