30ba70ade8
Guide new users through connecting a server, configuring an agent harness, starting runs, and chatting with agents. Persist completion per device and offer the walkthrough again for empty servers or from Settings, with widget coverage and implementation notes.
24 lines
746 B
Dart
24 lines
746 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../walkthrough/first_run_walkthrough.dart';
|
|
import 'settings_keys.dart';
|
|
import 'settings_row.dart';
|
|
|
|
/// Reopens the first-run walkthrough. It only shows the walkthrough; it never
|
|
/// changes the device's seen record.
|
|
class SettingsWalkthroughSection extends StatelessWidget {
|
|
const SettingsWalkthroughSection({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => SettingsRow(
|
|
key: SettingsKeys.walkthrough,
|
|
leading: const Icon(Icons.school_outlined),
|
|
title: const Text('Show the walkthrough'),
|
|
subtitle: const Text(
|
|
'Four short steps: connect, set up an agent, run, chat.',
|
|
),
|
|
chevron: true,
|
|
onTap: () => showFirstRunWalkthrough(context),
|
|
);
|
|
}
|