File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,17 @@ class MainAppState extends State<MainApp> {
70
70
}
71
71
}
72
72
73
- void main () => runApp (
74
- OKToast (
75
- child: Store .init (
76
- child: MainApp (),
77
- ),
73
+ class MyApp extends StatelessWidget {
74
+ @override
75
+ Widget build (BuildContext context) {
76
+ return MaterialApp (
77
+ home: OKToast (
78
+ child: Store .init (child: MainApp ()),
78
79
),
79
80
);
81
+ }
82
+ }
83
+
84
+ void main () => runApp (
85
+ MyApp (),
86
+ );
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ class Store {
17
17
return context;
18
18
}
19
19
20
- static init ({child}) {
20
+ static init ({child,context}) {
21
+ Store .context ?? = context;
21
22
return MultiProvider (
22
23
child: child,
23
24
providers: [
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ description: A new Flutter project.
7
7
# Both the version and the builder number may be overridden in flutter
8
8
# build by specifying --build-name and --build-number, respectively.
9
9
# Read more about versioning at semver.org.
10
- version : 1.0.3 +1
10
+ version : 1.0.4 +1
11
11
12
12
environment :
13
13
sdk : " >=2.2.2 <3.0.0"
Original file line number Diff line number Diff line change 1
- {"version" :" 1.0.3 " }
1
+ {"version" :" 1.0.4 " }
You can’t perform that action at this time.
0 commit comments