Add WiZ provisioning wizard
This commit is contained in:
@@ -13,6 +13,7 @@ import '../models/home_config.dart';
|
||||
import '../providers/providers.dart';
|
||||
import 'home_edit_screen.dart';
|
||||
import 'homes_screen.dart';
|
||||
import 'wiz_provisioning_screen.dart';
|
||||
|
||||
enum SettingsEntryPoint { homes, remote }
|
||||
|
||||
@@ -90,6 +91,15 @@ class _SettingsScreenState extends ConsumerState<SettingsScreen>
|
||||
spacing: 8,
|
||||
runSpacing: 8,
|
||||
children: [
|
||||
FilledButton.icon(
|
||||
onPressed: () => Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (_) => const WizProvisioningScreen(),
|
||||
),
|
||||
),
|
||||
icon: const Icon(Icons.lightbulb_outline),
|
||||
label: const Text('Подключить WiZ-лампу'),
|
||||
),
|
||||
FilledButton.tonalIcon(
|
||||
onPressed: () => _openHomeEditor(context, currentHome),
|
||||
icon: const Icon(Icons.edit_location_alt_outlined),
|
||||
|
||||
Reference in New Issue
Block a user