File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -202,10 +202,10 @@ class _ExpansionTileState extends State<ExpansionTile>
202
202
_borderColorTween..end = theme.dividerColor;
203
203
_headerColorTween
204
204
..begin = theme.textTheme.subhead.color
205
- ..end = theme.accentColor ;
205
+ ..end = theme.primaryColor ;
206
206
_iconColorTween
207
207
..begin = theme.unselectedWidgetColor
208
- ..end = theme.accentColor ;
208
+ ..end = theme.primaryColor ;
209
209
_backgroundColorTween..end = widget.backgroundColor;
210
210
super .didChangeDependencies ();
211
211
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class AppTheme {
15
15
static int blackColor = 0xFF000000 ;
16
16
static int lineColor = 0xFFEEEEEE ;
17
17
static getThemeData (String theme) {
18
- print ('==================================getThemeData=$theme ' );
18
+ // print('==================================getThemeData=$theme');
19
19
mainColor = materialColor[theme];
20
20
ThemeData themData = ThemeData (
21
21
textTheme: TextTheme (
@@ -36,14 +36,11 @@ class AppTheme {
36
36
),
37
37
accentColor: Colors .grey, // 选中颜色
38
38
primaryColor: Color (mainColor), // appbar背景
39
- primaryTextTheme: TextTheme (
40
- title: TextStyle (
41
- // color: Colors.red
42
- ),
43
- button: TextStyle (
44
- color: Colors .red
45
- )
46
- ),
39
+ primaryTextTheme: TextTheme (
40
+ title: TextStyle (
41
+ // color: Colors.red
42
+ ),
43
+ button: TextStyle (color: Colors .red)),
47
44
scaffoldBackgroundColor: Color (secondColor), // 整体的scaffold背景颜色
48
45
);
49
46
return themData;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import 'package:efox_flutter/config/theme.dart' show AppTheme;
6
6
import 'package:efox_flutter/store/index.dart' show model;
7
7
import 'package:efox_flutter/config/color.dart' show materialColor;
8
8
import 'package:efox_flutter/utils/appVersion.dart' show AppVersion;
9
+ import 'package:efox_flutter/components/expansionTile.dart' as Comp;
9
10
10
11
class _IndexState extends State <Index > {
11
12
@override
@@ -75,8 +76,9 @@ class _IndexState extends State<Index> {
75
76
Divider (
76
77
color: Color (AppTheme .lineColor),
77
78
),
78
- ExpansionTile (
79
+ Comp . ExpansionTile (
79
80
leading: Icon (Icons .color_lens),
81
+ headerBackgroundColor: Colors .transparent,
80
82
title: Row (
81
83
children: < Widget > [
82
84
Text (AppLocalizations .$t ('common_mine_1.theme' )),
You can’t perform that action at this time.
0 commit comments