Start the abstract class game
This commit is contained in:
parent
92927bd1c4
commit
e3695ff96a
@ -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<PageTransitionsTheme>(
|
||||
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(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
3
packages/domain_entities/lib/src/game/game.dart
Normal file
3
packages/domain_entities/lib/src/game/game.dart
Normal file
@ -0,0 +1,3 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class Game extends Equatable {}
|
@ -5,7 +5,7 @@ class MyWidget extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
return const Center(
|
||||
child: Text('Settings - Old'),
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user