Skip to content

Commit

Permalink
Fix buttons for settingsScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Kara-Zor-El committed Nov 21, 2023
1 parent 89d501c commit 0fedf32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/screens/MainScreens/settingsScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
getPackageInfo();
super.initState();
// Settings.init();
setSharedPrefs();
setSharedPrefs().then((value) {
setState(() {});
});
}

themeListener() {
Expand Down Expand Up @@ -223,7 +225,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
Future<Widget> themeSettings(BuildContext context) async {
return SettingsItem(
title: AppLocalizations.of(context)?.theme ?? 'theme',
selected: prefs?.getString('theme') ?? 'system',
selected: await prefs!.getString('theme') ?? 'system',
backgroundColor: Theme.of(context).splashColor,
icon: Icons.color_lens,
values: <String, String>{
Expand Down

0 comments on commit 0fedf32

Please sign in to comment.