diff --git a/lib/main.dart b/lib/main.dart index 215c0d4..4f94187 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,6 @@ import 'dart:io'; import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'pages/pokemon_detail.dart'; import 'pages/main_page.dart'; import 'package:google_fonts/google_fonts.dart'; @@ -12,7 +13,7 @@ void main() { sqfliteFfiInit(); databaseFactory = databaseFactoryFfi; } - runApp(const MyApp()); + runApp(const ProviderScope(child: MyApp())); } class MyApp extends StatelessWidget { diff --git a/pubspec.yaml b/pubspec.yaml index dc1cb1e..5d3eee0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -26,6 +26,7 @@ dependencies: cupertino_icons: ^1.0.2 google_fonts: ^8.0.2 shared_preferences: ^2.5.4 + flutter_riverpod: ^2.5.0 dev_dependencies: flutter_test: