mirror of
https://github.com/stonega/tsacdop
synced 2025-02-13 10:00:49 +01:00
Change RadioListTile radius
This commit is contained in:
parent
6a88054ffe
commit
1710e5da77
@ -82,7 +82,12 @@ class ThemeSetting extends StatelessWidget {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
RadioListTile(
|
ClipRRect(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.all(Radius.circular(5)),
|
||||||
|
child: Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: RadioListTile(
|
||||||
title: Text(s.systemDefault),
|
title: Text(s.systemDefault),
|
||||||
value: ThemeMode.system,
|
value: ThemeMode.system,
|
||||||
groupValue: settings.theme,
|
groupValue: settings.theme,
|
||||||
@ -90,7 +95,14 @@ class ThemeSetting extends StatelessWidget {
|
|||||||
settings.setTheme = value;
|
settings.setTheme = value;
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}),
|
}),
|
||||||
RadioListTile(
|
),
|
||||||
|
),
|
||||||
|
ClipRRect(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.all(Radius.circular(5)),
|
||||||
|
child: Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: RadioListTile(
|
||||||
title: Text(s.darkMode),
|
title: Text(s.darkMode),
|
||||||
value: ThemeMode.dark,
|
value: ThemeMode.dark,
|
||||||
groupValue: settings.theme,
|
groupValue: settings.theme,
|
||||||
@ -98,7 +110,14 @@ class ThemeSetting extends StatelessWidget {
|
|||||||
settings.setTheme = value;
|
settings.setTheme = value;
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}),
|
}),
|
||||||
RadioListTile(
|
),
|
||||||
|
),
|
||||||
|
ClipRRect(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.all(Radius.circular(5)),
|
||||||
|
child: Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: RadioListTile(
|
||||||
title: Text(s.lightMode),
|
title: Text(s.lightMode),
|
||||||
value: ThemeMode.light,
|
value: ThemeMode.light,
|
||||||
groupValue: settings.theme,
|
groupValue: settings.theme,
|
||||||
@ -106,6 +125,8 @@ class ThemeSetting extends StatelessWidget {
|
|||||||
settings.setTheme = value;
|
settings.setTheme = value;
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}),
|
}),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user