mirror of
https://github.com/git-touch/git-touch
synced 2024-12-19 03:33:42 +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),
|
Tuple2('Cupertino', AppThemeType.cupertino),
|
||||||
].map((t) {
|
].map((t) {
|
||||||
return TableViewItem(
|
return TableViewItem(
|
||||||
text: Text('Material'),
|
text: Text(t.item1),
|
||||||
rightWidget: _buildRightWidget(
|
rightWidget: _buildRightWidget(
|
||||||
context,
|
context,
|
||||||
theme.theme == AppThemeType.material,
|
theme.theme == t.item2,
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (theme.theme != AppThemeType.material) {
|
if (theme.theme != t.item2) {
|
||||||
theme.setTheme(AppThemeType.material);
|
theme.setTheme(t.item2);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hideRightChevron: true,
|
hideRightChevron: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user