From 1710e5da77e06d54e0c515d45aaf63a9516ab6e7 Mon Sep 17 00:00:00 2001 From: stonegate Date: Sun, 12 Jul 2020 20:53:34 +0800 Subject: [PATCH] Change RadioListTile radius --- lib/settings/theme.dart | 69 +++++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 24 deletions(-) diff --git a/lib/settings/theme.dart b/lib/settings/theme.dart index 6bf77cb..4593dc1 100644 --- a/lib/settings/theme.dart +++ b/lib/settings/theme.dart @@ -82,30 +82,51 @@ class ThemeSetting extends StatelessWidget { mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.start, children: [ - RadioListTile( - title: Text(s.systemDefault), - value: ThemeMode.system, - groupValue: settings.theme, - onChanged: (value) { - settings.setTheme = value; - Navigator.of(context).pop(); - }), - RadioListTile( - title: Text(s.darkMode), - value: ThemeMode.dark, - groupValue: settings.theme, - onChanged: (value) { - settings.setTheme = value; - Navigator.of(context).pop(); - }), - RadioListTile( - title: Text(s.lightMode), - value: ThemeMode.light, - groupValue: settings.theme, - onChanged: (value) { - settings.setTheme = value; - Navigator.of(context).pop(); - }), + ClipRRect( + borderRadius: + BorderRadius.all(Radius.circular(5)), + child: Material( + color: Colors.transparent, + child: RadioListTile( + title: Text(s.systemDefault), + value: ThemeMode.system, + groupValue: settings.theme, + onChanged: (value) { + settings.setTheme = value; + Navigator.of(context).pop(); + }), + ), + ), + ClipRRect( + borderRadius: + BorderRadius.all(Radius.circular(5)), + child: Material( + color: Colors.transparent, + child: RadioListTile( + title: Text(s.darkMode), + value: ThemeMode.dark, + groupValue: settings.theme, + onChanged: (value) { + settings.setTheme = value; + Navigator.of(context).pop(); + }), + ), + ), + ClipRRect( + borderRadius: + BorderRadius.all(Radius.circular(5)), + child: Material( + color: Colors.transparent, + child: RadioListTile( + title: Text(s.lightMode), + value: ThemeMode.light, + groupValue: settings.theme, + onChanged: (value) { + settings.setTheme = value; + Navigator.of(context).pop(); + }), + ), + ), ], ), ),