From 5b7084cf9de8f43cdc771f0b5ce92fc15d9e74af Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 6 Mar 2026 12:26:18 +0100 Subject: Add `class Sia` as top-level widget This simplifies the main function and adheres more to Flutter conventions. --- lib/ui.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/ui.dart') diff --git a/lib/ui.dart b/lib/ui.dart index b9f82d0..1d33f32 100644 --- a/lib/ui.dart +++ b/lib/ui.dart @@ -3,6 +3,18 @@ import 'package:provider/provider.dart'; import 'data.dart'; +class Sia extends StatelessWidget { + const Sia({super.key}); + + @override + Widget build(BuildContext context) { + return ChangeNotifierProvider( + create: (BuildContext context) => AppState(), + child: const UI(), + ); + } +} + class UI extends StatelessWidget { const UI({super.key}); -- cgit v1.3