Fix text style in reset dialogs.

This commit is contained in:
Dain Nilsson 2023-02-07 14:38:23 +01:00
parent 0788d731f3
commit 67c717cf13
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
2 changed files with 8 additions and 7 deletions

View File

@ -111,11 +111,12 @@ class _ResetDialogState extends ConsumerState<ResetDialog> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(AppLocalizations.of(context)! Text(
.fido_warning_will_delete_accounts), AppLocalizations.of(context)!.fido_warning_will_delete_accounts,
style: const TextStyle(fontWeight: FontWeight.bold),
),
Text( Text(
AppLocalizations.of(context)!.fido_warning_disable_these_creds, AppLocalizations.of(context)!.fido_warning_disable_these_creds,
style: Theme.of(context).textTheme.bodyLarge,
), ),
Center( Center(
child: Text(_getMessage(), child: Text(_getMessage(),

View File

@ -49,12 +49,12 @@ class ResetDialog extends ConsumerWidget {
padding: const EdgeInsets.symmetric(horizontal: 18.0), padding: const EdgeInsets.symmetric(horizontal: 18.0),
child: Column( child: Column(
children: [ children: [
Text(AppLocalizations.of(context)!
.oath_warning_will_delete_accounts),
Text( Text(
AppLocalizations.of(context)!.oath_warning_disable_these_creds, AppLocalizations.of(context)!.oath_warning_will_delete_accounts,
style: Theme.of(context).textTheme.bodyLarge, style: const TextStyle(fontWeight: FontWeight.bold),
), ),
Text(
AppLocalizations.of(context)!.oath_warning_disable_these_creds),
] ]
.map((e) => Padding( .map((e) => Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0), padding: const EdgeInsets.symmetric(vertical: 8.0),