This commit is contained in:
lollipopkit
2023-09-08 20:05:43 +08:00
parent 84e99048ab
commit b187ec88be
7 changed files with 52 additions and 30 deletions

View File

@@ -319,14 +319,15 @@ class _SettingPageState extends State<SettingPage> {
child: StatefulBuilder(builder: (context, setState) {
final children = <Widget>[
/// Plugin [dynamic_color] is not supported on iOS
if (!isIOS) ListTile(
title: Text(_s.followSystem),
trailing: buildSwitch(
context,
_setting.useSystemPrimaryColor,
func: (_) => setState(() {}),
),
)
if (!isIOS)
ListTile(
title: Text(_s.followSystem),
trailing: buildSwitch(
context,
_setting.useSystemPrimaryColor,
func: (_) => setState(() {}),
),
)
];
if (!_setting.useSystemPrimaryColor.fetch()) {
children.addAll([