diff --git a/README.md b/README.md index be0dbff..ec4677e 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,10 @@ 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) | 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),