mirror of
https://github.com/block/buzz.git
synced 2026-10-30 14:01:37 +00:00
23 lines
538 B
Dart
23 lines
538 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
|
|
import 'features/home/home_page.dart';
|
|
import 'shared/theme/theme.dart';
|
|
|
|
class App extends HookConsumerWidget {
|
|
const App({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
final themeMode = ref.watch(themeProvider);
|
|
|
|
return MaterialApp(
|
|
title: 'Sprout',
|
|
theme: AppTheme.lightTheme,
|
|
darkTheme: AppTheme.darkTheme,
|
|
themeMode: themeMode,
|
|
home: const HomePage(),
|
|
);
|
|
}
|
|
}
|