refactor: shared coalescer, profile-scoped prefs key, and form-error helper

This commit is contained in:
edde746
2026-07-10 07:05:35 +02:00
parent 397de2698d
commit ede80d225f
9 changed files with 119 additions and 28 deletions
+2 -12
View File
@@ -574,10 +574,7 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
),
],
],
if (errorText != null) ...[
const SizedBox(height: 12),
Text(errorText!, style: theme.textTheme.bodySmall?.copyWith(color: theme.colorScheme.error)),
],
...buildInlineError(theme),
];
}
@@ -738,14 +735,7 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
label: Text(t.auth.quickConnectCancel),
),
),
if (errorText != null) ...[
const SizedBox(height: 16),
Text(
errorText!,
textAlign: TextAlign.center,
style: theme.textTheme.bodySmall?.copyWith(color: theme.colorScheme.error),
),
],
...buildInlineError(theme, gap: 16, center: true),
],
),
);