bramvbilsen / flutter-geofire Goto Github PK
View Code? Open in Web Editor NEWThis repo contains the code for a GeoFire plugin for Flutter.
License: Other
This repo contains the code for a GeoFire plugin for Flutter.
License: Other
The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297.
Because login depends on geofire from git which requires SDK version <2.0.0, version solving failed.
pub get failed (1)
Process finished with exit code 1
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.
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"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.