chore: add flutter_riverpod and wrap app in ProviderScope
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6f81384a06
commit
ca769dca2d
@ -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 {
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user