Moved away from singleton pattern
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -5,11 +5,11 @@ import 'package:wolf_3d_gui/screens/game_select_screen.dart';
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
await Wolf3d.I.init();
|
||||
final Wolf3d wolf3d = await Wolf3d().init();
|
||||
|
||||
runApp(
|
||||
const MaterialApp(
|
||||
home: GameSelectScreen(),
|
||||
MaterialApp(
|
||||
home: GameSelectScreen(wolf3d: wolf3d),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user