mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
#159 opt.
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user