Skip to content

Commit

Permalink
Set lazy: false for the gameCubit, this way, it starts loading the ne…
Browse files Browse the repository at this point in the history
…eded data ASAP (we need them to show in the game page)
  • Loading branch information
imaNNeo committed Sep 20, 2024
1 parent 421c274 commit b32dee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flappy_dash/audio_helper.dart';
import 'package:flappy_dash/domain/repositories/game_repository.dart';
import 'package:flappy_dash/presentation/pages/main_page.dart';
import 'package:flappy_dash/presentation/pages/splash/splash_page.dart';
import 'package:flappy_dash/service_locator.dart';
import 'package:flutter/material.dart';
Expand All @@ -23,6 +22,7 @@ class MyApp extends StatelessWidget {
getIt.get<AudioHelper>(),
getIt.get<GameRepository>(),
),
lazy: false,
child: MaterialApp(
title: 'Flappy Dash',
theme: ThemeData(fontFamily: 'Chewy'),
Expand Down

0 comments on commit b32dee0

Please sign in to comment.