diff options
| author | xengineering <me@xengineering.eu> | 2026-03-06 12:26:18 +0100 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2026-03-06 12:26:18 +0100 |
| commit | 5b7084cf9de8f43cdc771f0b5ce92fc15d9e74af (patch) | |
| tree | e28568ebec55fc0673de20a6c71b323e33d796c4 /lib/ui.dart | |
| parent | ec394bd20b3c9325130596d63c5268587b159027 (diff) | |
| download | sia-app-5b7084cf9de8f43cdc771f0b5ce92fc15d9e74af.tar sia-app-5b7084cf9de8f43cdc771f0b5ce92fc15d9e74af.tar.zst sia-app-5b7084cf9de8f43cdc771f0b5ce92fc15d9e74af.zip | |
Add `class Sia` as top-level widget
This simplifies the main function and adheres more to Flutter
conventions.
Diffstat (limited to 'lib/ui.dart')
| -rw-r--r-- | lib/ui.dart | 12 |
1 files changed, 12 insertions, 0 deletions
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<AppState>( + create: (BuildContext context) => AppState(), + child: const UI(), + ); + } +} + class UI extends StatelessWidget { const UI({super.key}); |
