From e3695ff96a9c5f8f3720accffee0dbc5262d513f Mon Sep 17 00:00:00 2001 From: Yann Date: Wed, 20 Nov 2024 15:30:43 +0100 Subject: [PATCH] Start the abstract class game --- lib/main.dart | 15 +-------------- packages/domain_entities/lib/src/game/game.dart | 3 +++ .../board_game/lib/src/screens/settings.dart | 2 +- 3 files changed, 5 insertions(+), 15 deletions(-) create mode 100644 packages/domain_entities/lib/src/game/game.dart diff --git a/lib/main.dart b/lib/main.dart index 1b82187..7156ccc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -8,24 +8,11 @@ void main() { runApp( MultiProvider( providers: [ - // Ton provider UserRepository Provider( create: (context) => LocalUserRepository( keyValueStorage: KeyValueStorage(), ), ), - // Providers pour la gestion de l'état - Provider( - create: (_) => PageTransitionsTheme( - builders: { - TargetPlatform.android: NoTransitionsBuilder(), - TargetPlatform.iOS: NoTransitionsBuilder(), - TargetPlatform.windows: NoTransitionsBuilder(), - TargetPlatform.linux: NoTransitionsBuilder(), - TargetPlatform.macOS: NoTransitionsBuilder(), - }, - ), - ), ChangeNotifierProvider(create: (context) => CellListProvider()), ChangeNotifierProvider(create: (context) => ArticleListProvider()), ChangeNotifierProvider(create: (context) => SettingsProvider()), @@ -35,7 +22,7 @@ void main() { ), ), ], - child: const MainApp(), // Maintenant MainApp a accès aux providers + child: const MainApp(), ), ); } diff --git a/packages/domain_entities/lib/src/game/game.dart b/packages/domain_entities/lib/src/game/game.dart new file mode 100644 index 0000000..37bf210 --- /dev/null +++ b/packages/domain_entities/lib/src/game/game.dart @@ -0,0 +1,3 @@ +import 'package:equatable/equatable.dart'; + +abstract class Game extends Equatable {} diff --git a/packages/features/board_game/lib/src/screens/settings.dart b/packages/features/board_game/lib/src/screens/settings.dart index bca4434..61ec762 100644 --- a/packages/features/board_game/lib/src/screens/settings.dart +++ b/packages/features/board_game/lib/src/screens/settings.dart @@ -5,7 +5,7 @@ class MyWidget extends StatelessWidget { @override Widget build(BuildContext context) { - return Center( + return const Center( child: Text('Settings - Old'), ); }