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:
parent
271e8bd761
commit
20ca29657b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user