Skip to content

Commit

Permalink
style: reformat subpage_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
w568w committed Nov 26, 2024
1 parent 4c1c069 commit 25a5443
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/page/subpage_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ class SettingsSubpageState extends PlatformSubpageState<SettingsSubpage> {
"https://github.com/50431040/device_identity"),
LicenseItem("tutorial_coach_mark", LICENSE_MIT,
"https://github.com/RafaelBarbosatec/tutorial_coach_mark"),
LicenseItem("toml", LICENSE_MIT,
"https://github.com/just95/toml.dart"),
LicenseItem("toml", LICENSE_MIT, "https://github.com/just95/toml.dart"),
LicenseItem("pub_semver", LICENSE_BSD_3_0_CLAUSE,
"https://github.com/dart-lang/pub_semver"),
];
Expand All @@ -252,10 +251,10 @@ class SettingsSubpageState extends PlatformSubpageState<SettingsSubpage> {
await ForumRepository.getInstance().logout();
} finally {
progressDialog.dismiss(showAnim: false);
SettingsProvider.getInstance()
.preferences
?.clear()
.then((value) => FlutterApp.restartApp(context));
await SettingsProvider.getInstance().preferences?.clear();
if (mounted) {
FlutterApp.restartApp(context);
}
}
}

Expand Down

0 comments on commit 25a5443

Please sign in to comment.