aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/screens/home
diff options
context:
space:
mode:
Diffstat (limited to 'lib/presentation/screens/home')
-rw-r--r--lib/presentation/screens/home/home.dart8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/presentation/screens/home/home.dart b/lib/presentation/screens/home/home.dart
index 3d80f92..8f0d125 100644
--- a/lib/presentation/screens/home/home.dart
+++ b/lib/presentation/screens/home/home.dart
@@ -28,7 +28,7 @@ class HomeScreenState extends ConsumerState<HomeScreen> {
BuildContext context,
) {
return Consumer(builder: (context, ref, child) {
- final state = ref.read(appProvider);
+ final appState = ref.watch(appProvider);
final bool disableBkgAnimation =
ref.read(appConfigProvider).disableBkgAnimation;
if (disableBkgAnimation) {
@@ -48,13 +48,13 @@ class HomeScreenState extends ConsumerState<HomeScreen> {
repeat: true,
),
FlowBuilder<AppState>(
- state: ref.watch(appProvider),
+ state: appState,
onGeneratePages: onGenerateAppViewPages,
observers: [
HeroController(),
],
),
- if (state != AppState.splash)
+ if (appState != AppState.splash)
Positioned(
top: 0,
bottom: 0,
@@ -66,7 +66,7 @@ class HomeScreenState extends ConsumerState<HomeScreen> {
],
),
bottomNavigationBar:
- state == AppState.splash ? null : const CustomBottomBar(),
+ appState == AppState.splash ? null : const CustomBottomBar(),
);
});
}