1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-18 19:22:54 +01:00

fix: theme select

This commit is contained in:
Rongjian Zhang 2020-01-14 12:34:27 +08:00
parent 271e8bd761
commit 20ca29657b

View File

@ -45,14 +45,14 @@ class SettingsScreen extends StatelessWidget {
Tuple2('Cupertino', AppThemeType.cupertino),
].map((t) {
return TableViewItem(
text: Text('Material'),
text: Text(t.item1),
rightWidget: _buildRightWidget(
context,
theme.theme == AppThemeType.material,
theme.theme == t.item2,
),
onTap: () {
if (theme.theme != AppThemeType.material) {
theme.setTheme(AppThemeType.material);
if (theme.theme != t.item2) {
theme.setTheme(t.item2);
}
},
hideRightChevron: true,