Start the abstract class game

This commit is contained in:
Yann 2024-11-20 15:30:43 +01:00
parent 92927bd1c4
commit e3695ff96a
3 changed files with 5 additions and 15 deletions

View File

@ -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(),
),
);
}

View File

@ -0,0 +1,3 @@
import 'package:equatable/equatable.dart';
abstract class Game extends Equatable {}

View File

@ -5,7 +5,7 @@ class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
return const Center(
child: Text('Settings - Old'),
);
}