mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-19 07:09:14 +00:00
fix: app_settings page UI updates
This commit is contained in:
parent
efd3dfbde5
commit
38a896ec2e
|
@ -45,11 +45,12 @@ class _AppSettingsPageState extends State<AppSettingsPage> {
|
|||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Text(
|
||||
'application_settings.dangerous_settings'.tr(),
|
||||
style: Theme.of(context).textTheme.titleLarge!.copyWith(
|
||||
style: Theme.of(context).textTheme.labelLarge!.copyWith(
|
||||
color: Theme.of(context).colorScheme.error,
|
||||
),
|
||||
),
|
||||
),
|
||||
const Gap(4),
|
||||
_ResetAppTile(
|
||||
key: ValueKey('reset_app'.tr()),
|
||||
),
|
||||
|
|
|
@ -13,7 +13,7 @@ class _LanguagePicker extends StatelessWidget {
|
|||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Text(
|
||||
Localization.getLanguageName(context.locale),
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
style: Theme.of(context).textTheme.labelLarge,
|
||||
),
|
||||
),
|
||||
onTap: () async {
|
||||
|
@ -41,8 +41,10 @@ class _LanguagePickerDialog extends StatelessWidget {
|
|||
children: [
|
||||
for (final locale
|
||||
in InheritedAppController.of(context).supportedLocales)
|
||||
ListTile(
|
||||
title: Text(
|
||||
RadioMenuButton(
|
||||
groupValue: context.locale,
|
||||
value: locale,
|
||||
child: Text(
|
||||
Localization.getLanguageName(locale),
|
||||
style: TextStyle(
|
||||
fontWeight: locale == context.locale
|
||||
|
@ -50,8 +52,8 @@ class _LanguagePickerDialog extends StatelessWidget {
|
|||
: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
Navigator.of(context).pop(locale);
|
||||
onChanged: (final newValue) {
|
||||
Navigator.of(context).pop(newValue);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue