-
-
Save yaizudamashii/61fbd742c5f3cea99e31d14a1d800ef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:firebase_core/firebase_core.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); | |
await Firebase.initializeApp(); | |
final sharedPreferences = await SharedPreferences.getInstance(); | |
runApp( | |
ProviderScope( | |
overrides: [ | |
sharedPreferencesServiceProvider.overrideWithValue( | |
SharedPreferencesService(sharedPreferences), | |
), | |
], | |
child: MyApp(), | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment