From 173df1317270dc0f8a731f30569c16c70de9231d Mon Sep 17 00:00:00 2001 From: Danilo Clemente Date: Thu, 17 Oct 2019 20:01:15 -0300 Subject: [PATCH 1/5] project collaboration author --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index be0dbff..a561dfd 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,4 @@ samples, guidance on mobile development, and a full API reference. https://medium.com/flutter-community/flutter-layout-cheat-sheet-5363348d037e https://medium.com/jlouage/container-de5b0d3ad184 + From 6f5d63d0ec1e8ede752f7593461302be9dadc49e Mon Sep 17 00:00:00 2001 From: Danilo Clemente Date: Thu, 17 Oct 2019 20:04:59 -0300 Subject: [PATCH 2/5] adding project collaboration author --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index a561dfd..be0dbff 100644 --- a/README.md +++ b/README.md @@ -17,4 +17,3 @@ samples, guidance on mobile development, and a full API reference. https://medium.com/flutter-community/flutter-layout-cheat-sheet-5363348d037e https://medium.com/jlouage/container-de5b0d3ad184 - From d12123bf359fcb2e036fd430ff1a3c3c4ecf8524 Mon Sep 17 00:00:00 2001 From: Danilo Clemente Date: Thu, 17 Oct 2019 20:13:23 -0300 Subject: [PATCH 3/5] adding project collaboration author --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index be0dbff..a561dfd 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,4 @@ samples, guidance on mobile development, and a full API reference. https://medium.com/flutter-community/flutter-layout-cheat-sheet-5363348d037e https://medium.com/jlouage/container-de5b0d3ad184 + From 79a35092be2e9b2fff0b4c51c4f213f32717605e Mon Sep 17 00:00:00 2001 From: Danilo Clemente Date: Thu, 17 Oct 2019 20:24:24 -0300 Subject: [PATCH 4/5] adding project collaboration author --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a561dfd..ec4677e 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,9 @@ samples, guidance on mobile development, and a full API reference. https://medium.com/flutter-community/flutter-layout-cheat-sheet-5363348d037e https://medium.com/jlouage/container-de5b0d3ad184 + +[perez-danilo](https://github.com/perez-danilo) + +| Nome | github | +| ------------- | ------------- | +| Danilo Perez | [perez-danilo](https://github.com/perez-danilo) | From d4dc517882bda155732a9aa01b5164ab2db3d7b3 Mon Sep 17 00:00:00 2001 From: Danilo Clemente Date: Thu, 17 Oct 2019 21:19:49 -0300 Subject: [PATCH 5/5] Replaced portuguese variable names --- .../create-account/create-account.page.dart | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/pages/create-account/create-account.page.dart b/lib/pages/create-account/create-account.page.dart index 47fd623..f0cbebe 100644 --- a/lib/pages/create-account/create-account.page.dart +++ b/lib/pages/create-account/create-account.page.dart @@ -1,5 +1,4 @@ import 'dart:io'; - import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_storage/firebase_storage.dart'; @@ -14,15 +13,15 @@ class CreateAccountPage extends StatefulWidget { class _CreateAccountPageState extends State { String email = ""; - String nome = ""; - String senha = ""; + String name = ""; + String password = ""; final FirebaseAuth _auth = FirebaseAuth.instance; File image; Future _handleCreateAccount() async { final AuthResult auth = await _auth.createUserWithEmailAndPassword( email: this.email, - password: this.senha, + password: this.password, ); var user = auth.user; @@ -34,7 +33,7 @@ class _CreateAccountPageState extends State { String downloadUrl = await taskSnapshot.ref.getDownloadURL(); UserUpdateInfo info = new UserUpdateInfo(); - info.displayName = this.nome; + info.displayName = this.name; info.photoUrl = downloadUrl; await user.updateProfile(info); await user.reload(); @@ -50,7 +49,7 @@ class _CreateAccountPageState extends State { final databaseReference = Firestore.instance; await databaseReference.collection("usuarios").document(this.email).setData({ - 'nome': this.nome, + 'nome': this.name, 'email': this.email, 'foto': downloadUrl, 'latitude' : currentLocation.latitude, @@ -110,7 +109,7 @@ class _CreateAccountPageState extends State { padding: const EdgeInsets.all(8.0), child: TextField( onChanged: (value) { - nome = value; + name = value; }, style: TextStyle(fontSize: 15), decoration: new InputDecoration( @@ -121,7 +120,7 @@ class _CreateAccountPageState extends State { ), filled: true, hintStyle: new TextStyle(color: Colors.grey[800]), - hintText: "Nome", + hintText: "nome", fillColor: Colors.white), ), ), @@ -140,7 +139,7 @@ class _CreateAccountPageState extends State { ), filled: true, hintStyle: new TextStyle(color: Colors.grey[800]), - hintText: "eMail", + hintText: "E-Mail", fillColor: Colors.white), ), ), @@ -148,7 +147,7 @@ class _CreateAccountPageState extends State { padding: const EdgeInsets.all(8.0), child: TextField( onChanged: (value) { - senha = value; + password = value; }, obscureText: true, style: TextStyle(fontSize: 15),