Ronak99 / Skype-Clone

Making a fully functional skype clone in flutter.
MIT License
318 stars 172 forks source link

build broken after update to latest firebase plugins #37

Open alexlovar opened 4 years ago

alexlovar commented 4 years ago

i update the yaml file to the latest firebase plugins

  firebase_auth: ^0.18.0+1
  cloud_firestore: ^0.14.0+2
  firebase_core: ^0.5.0
  firebase_storage: ^4.0.0
  firebase_messaging: ^7.0.0
  firebase_database: ^4.0.0

after this i get this error code when try to run the app

lib/resources/auth_methods.dart:6:1: Error: 'User' is imported from both 'package:firebase_auth/firebase_auth.dart' and 'package:skype_clone/models/user.dart'.
import 'package:skype_clone/models/user.dart';
tejasbirsingh commented 4 years ago

User has become the new name for Firebase User . And in this project we also have user model that we created so it leads to ambiguity . You need to rename the user model that we created to something else like UserData . And in all files where you used Firebaseuser change it to user. Hope it Helps! If you face any issue feel free to ask!

Milimeter commented 4 years ago

is that the only error that you are facing?