@@ -8,6 +8,7 @@ import 'package:efox_flutter/store/store.dart' show Store, MainStateModel;
88import 'package:efox_flutter/components/header.dart' as Header;
99import 'component/index.dart' as TabIndex;
1010import 'mine/index.dart' as MyIndex;
11+ import 'package:efox_flutter/config/theme.dart' show AppTheme;
1112
1213class Index extends StatefulWidget {
1314 @override
@@ -26,7 +27,7 @@ class _IndexState extends State<Index> with SingleTickerProviderStateMixin {
2627 border: Border (
2728 top: BorderSide (
2829 width: .1 ,
29- color: Color (model.theme .greyColor),
30+ color: Color (AppTheme .greyColor),
3031 ),
3132 ),
3233 ),
@@ -35,14 +36,14 @@ class _IndexState extends State<Index> with SingleTickerProviderStateMixin {
3536 border: Border (
3637 bottom: BorderSide (
3738 width: .2 ,
38- color: Color (model.theme .mainColor),
39+ color: Color (AppTheme .mainColor),
3940 ),
4041 ),
4142 ),
42- labelColor: Color (model.theme .mainColor),
43- unselectedLabelColor: Color (model.theme .greyColor),
43+ labelColor: Color (AppTheme .mainColor),
44+ unselectedLabelColor: Color (AppTheme .greyColor),
4445 indicatorSize: TabBarIndicatorSize .tab,
45- indicatorColor: Color (model.theme .secondColor),
46+ indicatorColor: Color (AppTheme .secondColor),
4647 labelStyle: TextStyle (
4748 color: Colors .green,
4849 fontWeight: FontWeight .w700,
@@ -73,7 +74,7 @@ class _IndexState extends State<Index> with SingleTickerProviderStateMixin {
7374 PopupMenuButton (
7475 icon: Icon (
7576 Icons .more_vert,
76- // color: Color(model.theme .textColor),
77+ // color: Color(AppTheme .textColor),
7778 ),
7879 onSelected: (local) {
7980 Application ().onLocaleChanged (Locale (local));
0 commit comments