Code Monkey home page Code Monkey logo

flutter-geofire's People

Contributors

bramvbilsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter-geofire's Issues

getLocation CallBack not working

Both setLocation and removeLocation work fine but not getLocation or queryAtLocation. No error in the logs. I have tested with 'MethodeCahnnel' to Android/Java and all works fine there so I can rule out Firebase Database as an issue ?

....
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
          appBar: new AppBar(
            title: new Text('Plugin example app'),
          ),
          body:
          new Center(
            child: new Column(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                new Padding(padding: new EdgeInsets.only(top: 20.0),), 
              new RaisedButton(
                    child: new Text("Set Location"),
                    onPressed: () => geofire.setLocation("MechelenOne", [51.0259, 4.4775], // Necessary
                        new GeoFireEventListener((String key, DatabaseError error) { // Optional
                          String s = error == null ? key : error.toString();
                          print(s);
                        }))
                ),
                new RaisedButton(
                  child: new Text("Print location"),
                  onPressed: () =>  geofire.getLocation("MechelenOne", new LocationCallBack(
                          (String key, List<double> location) {
                        print("Successfully received location!");
                        print(key + ": " + location.toString());
                      },
                          (DatabaseError error) {
                        print("Error receiving location!");
                        print(error.toString());
                      }
                  )),
//                  onPressed: () => getAndPrintLocation(),
                ),
                new RaisedButton(
                    child: new Text("Remove previously set location"),
                    onPressed: () => geofire.removeLocation("MechelenOne")
                ),
...

Any assistance would be greatly appreciated. Thanks.

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

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.