Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .flutter-plugins
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cloud_firestore=/Users/daniloperez/programas/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.9+5/
firebase_auth=/Users/daniloperez/programas/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.14.0+5/
firebase_core=/Users/daniloperez/programas/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+9/
firebase_storage=/Users/daniloperez/programas/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.0.6/
image_picker=/Users/daniloperez/programas/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.0+3/
location=/Users/daniloperez/programas/flutter/.pub-cache/hosted/pub.dartlang.org/location-2.3.5/
cloud_firestore=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\cloud_firestore-0.12.9+5\\
firebase_auth=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_auth-0.14.0+5\\
firebase_core=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_core-0.4.0+9\\
firebase_storage=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_storage-3.0.6\\
image_picker=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\image_picker-0.6.0+3\\
location=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\location-2.3.5\\
4 changes: 2 additions & 2 deletions android/local.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sdk.dir=/Users/daniloperez/Library/Android/sdk
flutter.sdk=/Users/daniloperez/programas/flutter
sdk.dir=C:\\Users\\fblascke\\AppData\\Local\\Android\\sdk
flutter.sdk=C:\\src\\flutter
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: HomePage(),
);
}
}
}
7 changes: 5 additions & 2 deletions lib/pages/create-account/create-account.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ class _CreateAccountPageState extends State<CreateAccountPage> {
}

final databaseReference = Firestore.instance;
await databaseReference.collection("usuarios").document(this.email).setData({
await databaseReference
.collection("usuarios")
.document(this.email)
.setData({
'nome': this.nome,
'email': this.email,
'foto': downloadUrl,
'latitude' : currentLocation.latitude,
'latitude': currentLocation.latitude,
'longitude': currentLocation.longitude
});

Expand Down
6 changes: 5 additions & 1 deletion lib/pages/home/home.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ class _HomePageState extends State<HomePage> {
child: Column(
children: <Widget>[
if (file != null)
Image.file(file, width: 100, height: 100,),
Image.file(
file,
width: 100,
height: 100,
),
Container(
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
width: double.infinity,
Expand Down