@@ -32,6 +32,7 @@ class _SettingsState extends State<Settings> {
32
32
centerTitle: true ,
33
33
iconTheme: IconThemeData (color: Colors .black),
34
34
backgroundColor: Colors .white,
35
+ brightness: Brightness .light,
35
36
elevation: 0 ,
36
37
),
37
38
body: settings == null
@@ -48,7 +49,13 @@ class _SettingsState extends State<Settings> {
48
49
'settingsUserInfo_flo_388' ,
49
50
'settingsFloors_flo_389'
50
51
].contains (item.bId))
51
- .map ((item) => _settingCard (item.data.nodes))
52
+ .map (
53
+ (item) => _settingCard (
54
+ item.data.nodes,
55
+ onTap: (item) => Navigator .of (context)
56
+ .pushNamed ('/general_settings' ),
57
+ ),
58
+ )
52
59
.toList (),
53
60
GestureDetector (
54
61
child: Container (
@@ -93,7 +100,7 @@ class _SettingsState extends State<Settings> {
93
100
'https://storage.360buyimg.com/i.imageUpload/494dccc6eedad0a1b1a631353834363036343330373230_big.jpg' ,
94
101
scale: 1.8 ),
95
102
),
96
- title: Text ('Flutter Admin' ),
103
+ title: Text ('Flutter Admin' , style : TextStyle (fontSize : 12 , fontWeight : FontWeight .bold) ),
97
104
subtitle: Text ('用户名: Flutter Admin' ),
98
105
trailing: Icon (Icons .navigate_next),
99
106
),
@@ -102,7 +109,7 @@ class _SettingsState extends State<Settings> {
102
109
child: ListTile (
103
110
title: Text (address.nodes.first != null
104
111
? address.nodes.first.title.value
105
- : '' ),
112
+ : '' , style : TextStyle (fontSize : 14 , fontWeight : FontWeight .bold) ),
106
113
trailing: Icon (Icons .navigate_next),
107
114
),
108
115
),
@@ -111,23 +118,26 @@ class _SettingsState extends State<Settings> {
111
118
);
112
119
}
113
120
114
- _settingCard (List <SettingsResponseFloorsDataNode > nodes) {
121
+ _settingCard (List <SettingsResponseFloorsDataNode > nodes,
122
+ {void Function (SettingsResponseFloorsDataNode ) onTap}) {
115
123
return Container (
116
124
margin: EdgeInsets .only (top: 15 ),
117
125
decoration: BoxDecoration (
118
126
color: Colors .white,
119
127
borderRadius: BorderRadius .circular (10 ),
120
128
),
121
- child: ListView .builder (
129
+ child: ListView .separated (
130
+ separatorBuilder: (context, index) => Divider (height: 1 ,),
122
131
physics: const NeverScrollableScrollPhysics (),
123
132
shrinkWrap: true ,
124
133
itemCount: nodes.length,
125
134
padding: EdgeInsets .zero,
126
135
itemBuilder: (context, index) {
127
136
return ListTile (
128
- title: Text (nodes[index].title.value),
137
+ title: Text (nodes[index].title.value, style : TextStyle (fontSize : 14 ,fontWeight : FontWeight .bold, fontFamily : 'PingFang' , color : Colors .black) ),
129
138
subtitle: Text (nodes[index].subtitle.value),
130
139
trailing: Icon (Icons .navigate_next),
140
+ onTap: () => onTap (nodes[index]),
131
141
);
132
142
},
133
143
),
0 commit comments