Once i added the cloud_firestore: ^3.2.1 dependency, I started getting this error, I even removed this dependency, but I am still getting this error. When the dependency wasn't in my project and I was just using Firebase Auth, everything was fine.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(
MultiProvider(
providers: [
ChangeNotifierProvider(create: (_) => QuestionSectionProvider()),
ChangeNotifierProvider(create: (_) => UIHelperProvider()),
ChangeNotifierProvider(create: (_) => UserProvider())
],
child: const MedicPro()
)
);
}
CodePudding user response:
I was able to solve this issue using flutter clean
CodePudding user response:
Steps to resolve:
- Stop the project if the project is running.
- flutter clean
- flutter pub get.
- Run the project.