fix: app_settings page UI updates

This commit is contained in:
Aliaksei Tratseuski 2024-06-13 22:11:08 +04:00
parent efd3dfbde5
commit 38a896ec2e
2 changed files with 9 additions and 6 deletions

View file

@ -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()),
),

View file

@ -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);
},
),
],