Flutter-GeoFire icon indicating copy to clipboard operation
Flutter-GeoFire copied to clipboard

the name 'Database Error' is defined in the libraries 'firebase_database.dart' and 'geofire.dart'

Open ColquePaxi opened this issue 6 years ago • 3 comments

Hello BramVbilsen, Very very cool your plugin. Thank you, man!!!! After updated my firebase_database.dart (from 0.0.12 to 0.3.0) the geofire no works fine. Is there any solution to apply in this case?

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  image_picker: 0.1.1                                             # new
  google_sign_in: 0.3.1                                           # new
  firebase_analytics: 0.0.4                                       # new
  firebase_auth: 0.2.0                                            # new
  #firebase_database: 0.0.12                                       # new
  firebase_database: "^0.1.0"                                       # new
  firebase_storage: 0.0.5                                         # new
  intl: 0.15.2
  numberpicker: "^0.1.0"
  geocoder: "^0.0.1"                                              # Busca de endereço via API Google Maps

  # Para usar o runTransaction e fazer um contador no Firebase
  firebase_core: "0.0.7"                                         # new
  cupertino_icons: ^0.1.0

  geofire:
    git:
      url: "git://github.com/bramvbilsen/Flutter-GeoFire.git"

ColquePaxi avatar Apr 04 '18 20:04 ColquePaxi

Hello, I have the same problem. I can't solve it. Anybody have an idea? I don't know if we can do reference to DataBaseError in a different way

jesusgear2 avatar Apr 30 '18 10:04 jesusgear2

To avoid the conflict in names give your import any alias you want..


import 'package:firebase_database/firebase_database.dart' as fdb;

...
  final fdb.DatabaseReference ref = fdb.FirebaseDatabase.instance.reference().child("users");

hope that helps

AhabLives avatar Jul 29 '18 17:07 AhabLives

Thanks a lot, @AhabLives .

ColquePaxi avatar Sep 13 '18 11:09 ColquePaxi