Updated onboarding, reformatted files, improved referenced documents view, updated error handling

This commit is contained in:
Anton Stubenbord
2022-11-03 22:15:36 +01:00
parent 2f2312d5f3
commit 40133b6e0e
117 changed files with 1788 additions and 1021 deletions

View File

@@ -14,30 +14,38 @@ class ThemeModeSetting extends StatelessWidget {
builder: (context, settings) {
return ListTile(
title: Text(S.of(context).settingsPageAppearanceSettingTitle),
subtitle: Text(_mapThemeModeToLocalizedString(settings.preferredThemeMode, context)),
subtitle: Text(_mapThemeModeToLocalizedString(
settings.preferredThemeMode, context)),
onTap: () => showDialog<ThemeMode>(
context: context,
builder: (_) => RadioSettingsDialog<ThemeMode>(
options: [
RadioOption(
value: ThemeMode.system,
label: S.of(context).settingsPageAppearanceSettingSystemThemeLabel,
label: S
.of(context)
.settingsPageAppearanceSettingSystemThemeLabel,
),
RadioOption(
value: ThemeMode.light,
label: S.of(context).settingsPageAppearanceSettingLightThemeLabel,
label: S
.of(context)
.settingsPageAppearanceSettingLightThemeLabel,
),
RadioOption(
value: ThemeMode.dark,
label: S.of(context).settingsPageAppearanceSettingDarkThemeLabel,
label:
S.of(context).settingsPageAppearanceSettingDarkThemeLabel,
)
],
initialValue:
BlocProvider.of<ApplicationSettingsCubit>(context).state.preferredThemeMode,
initialValue: BlocProvider.of<ApplicationSettingsCubit>(context)
.state
.preferredThemeMode,
title: Text(S.of(context).settingsPageAppearanceSettingTitle),
),
).then((value) {
return BlocProvider.of<ApplicationSettingsCubit>(context).setThemeMode(value);
return BlocProvider.of<ApplicationSettingsCubit>(context)
.setThemeMode(value);
}),
);
},