mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Move welcome message into first-run backend config dialog
Drop the standalone welcome card from the Settings screen and show the greeting inside the non-dismissible first-run configuration dialog, noting that OOTT cannot function without a backend installed in the network. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
55192d5665
commit
8b2c8e7285
@@ -170,40 +170,10 @@ class _SettingsState extends State<Settings> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
final textTheme = Theme.of(context).textTheme;
|
||||
|
||||
return SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (_isFirstRun) ...[
|
||||
Card(
|
||||
color: colorScheme.secondaryContainer,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(Insets.lg),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.waving_hand_outlined,
|
||||
color: colorScheme.onSecondaryContainer,
|
||||
),
|
||||
const SizedBox(width: Insets.md),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'Welcome to OOTT! Point the app at your server’s API '
|
||||
'to get started.',
|
||||
style: textTheme.bodyMedium?.copyWith(
|
||||
color: colorScheme.onSecondaryContainer,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: Insets.lg),
|
||||
],
|
||||
_buildConnectionSummary(context),
|
||||
const SizedBox(height: Insets.lg),
|
||||
_buildAppSettings(context),
|
||||
|
||||
Reference in New Issue
Block a user