File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'package:efox_flutter/utils/appVersion.dart' show AppVersion;
55
66void initState () async {
77 // 获取版本号
8- Store .valueNotCtx <ConfigModel >().$ getAppVersion ();
8+ Store .valueNotCtx <ConfigModel >().getAppVersion ();
99 // 登录
1010 Store .valueNotCtx <UserModel >().getLocalUserInfo ().then ((res) {
1111 if (res) {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class MainAppState extends State<MainApp> {
3131
3232 @override
3333 Widget build (BuildContext context) {
34- Store .value <ConfigModel >(context).$ getTheme ();
34+ Store .value <ConfigModel >(context).getTheme ();
3535
3636 return Store .connect <ConfigModel >(
3737 builder: (context, child, model) {
Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ class _IndexState extends State<Index> {
4343 backgroundColor: Color (0xFFf7f7f7 ),
4444 type: BottomNavigationBarType .fixed,
4545 items: < BottomNavigationBarItem > [
46+ BottomNavigationBarItem (
47+ title: Text (AppLocalizations .$t ('title_library' )),
48+ icon: Icon (Icons .library_add)),
4649 BottomNavigationBarItem (
4750 title: Text (AppLocalizations .$t ('title_component' )),
4851 icon: Icon (Icons .dashboard)),
4952 BottomNavigationBarItem (
5053 title: Text (AppLocalizations .$t ('title_comment' )),
5154 icon: Icon (Icons .comment)),
52- BottomNavigationBarItem (
53- title: Text (AppLocalizations .$t ('title_library' )),
54- icon: Icon (Icons .library_add)),
5555 BottomNavigationBarItem (
5656 title: Text (AppLocalizations .$t ('title_my' )),
5757 icon: Icon (Icons .person_outline)),
@@ -215,9 +215,9 @@ class _IndexState extends State<Index> {
215215 });
216216 },
217217 children: < Widget > [
218+ LibraryIndex .Index (),
218219 TabIndex .Index (),
219220 CommentIndex .Index (),
220- LibraryIndex .Index (),
221221 MyIndex .Index (),
222222 ],
223223 ),
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class _IndexState extends State<Index> {
113113 ),
114114 ListTile (
115115 onTap: () {
116- Store .value <ConfigModel >(context).$ setIsPro ();
116+ Store .value <ConfigModel >(context).setIsPro ();
117117 },
118118 leading: Icon (Icons .verified_user),
119119 title: Text (Store .value <ConfigModel >(context).isPro
@@ -152,7 +152,7 @@ class _IndexState extends State<Index> {
152152 Widget Edage (name, color, context) {
153153 return GestureDetector (
154154 onTap: () {
155- Store .value <ConfigModel >(context).$ setTheme (name);
155+ Store .value <ConfigModel >(context).setTheme (name);
156156 },
157157 child: Container (
158158 color: Color (color),
Original file line number Diff line number Diff line change @@ -12,27 +12,27 @@ class ConfigInfo {
1212}
1313
1414class ConfigModel extends ConfigInfo with ChangeNotifier {
15- Future $ getAppVersion () async {
15+ Future getAppVersion () async {
1616 PackageInfo packageInfo = await PackageInfo .fromPlatform ();
1717 appVersion = await packageInfo.version;
1818 notifyListeners ();
1919 }
2020
21- Future $ getTheme () async {
21+ Future getTheme () async {
2222 String _theme = await LocalStorage .get ('theme' );
2323 print ('config get Theme ${_theme }' );
2424 if (_theme != null ) {
25- $ setTheme (_theme);
25+ setTheme (_theme);
2626 }
2727 }
2828
29- Future $ setTheme (payload) async {
29+ Future setTheme (payload) async {
3030 theme = payload;
3131 LocalStorage .set ('theme' , payload);
3232 notifyListeners ();
3333 }
3434
35- Future $ setIsPro () async {
35+ Future setIsPro () async {
3636 isPro = ! isPro;
3737 notifyListeners ();
3838 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'demo.dart' as Demo;
55class Index extends StatefulWidget {
66 static String title = 'NestedScrollView' ;
77 static String mdUrl = 'docs/widget/scrollview/nestedscrollview/index.md' ;
8- static String originCodeUrl = 'https://docs.flutter.io/flutter/widgets /Scrollbar-class.html' ;
8+ static String originCodeUrl = 'https://docs.flutter.io/flutter/material /Scrollbar-class.html' ;
99
1010 @override
1111 _IndexState createState () => new _IndexState ();
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'demo.dart' as Demo;
55class Index extends StatefulWidget {
66 static String title = 'Scrollbar' ;
77 static String mdUrl = 'docs/widget/scrollview/scrollbar/index.md' ;
8- static String originCodeUrl = 'https://docs.flutter.io/flutter/widgets /Scrollbar-class.html' ;
8+ static String originCodeUrl = 'https://docs.flutter.io/flutter/material /Scrollbar-class.html' ;
99
1010 @override
1111 _IndexState createState () => new _IndexState ();
You can’t perform that action at this time.
0 commit comments