mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
fix(settings): read the restore heading style inside the dialog
The heading's text style came from the page theme after the move to showAppConfirmDialog; a Builder resolves it from the dialog again, as the old dialog did.
This commit is contained in:
1 parent
0a53c78dda
commit
cd4900f8a9
1 file changed
+6
-5
@@ -191,7 +191,6 @@ class _BackupRestorePageState extends ConsumerState<BackupRestorePage> {
|
||||
|
||||
Future<bool> _confirmRestore(BackupBundle bundle) {
|
||||
final l10n = context.l10n;
|
||||
final theme = Theme.of(context);
|
||||
return showAppConfirmDialog(
|
||||
context,
|
||||
title: l10n.backupRestoreConfirmTitle,
|
||||
@@ -204,10 +203,12 @@ class _BackupRestorePageState extends ConsumerState<BackupRestorePage> {
|
||||
children: [
|
||||
Text(l10n.backupSelectedRestoreMessage),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
l10n.backupContentsTitle,
|
||||
style: theme.textTheme.titleSmall?.copyWith(
|
||||
fontWeight: FontWeight.w700,
|
||||
Builder(
|
||||
builder: (dialogContext) => Text(
|
||||
l10n.backupContentsTitle,
|
||||
style: Theme.of(
|
||||
dialogContext,
|
||||
).textTheme.titleSmall?.copyWith(fontWeight: FontWeight.w700),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
|
||||
Reference in new issue
Block a user