This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class SignIn extends StatefulWidget { | |
@override | |
_SignInState createState() => _SignInState(); | |
} | |
class _SignInState extends State<SignIn> { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InputDecoration textFieldInputDecoration(String hintText) { | |
return InputDecoration( | |
hintText: hintText, | |
hintStyle: TextStyle(color: Colors.white54), | |
focusedBorder: | |
UnderlineInputBorder(borderSide: BorderSide(color: Colors.white)), | |
enabledBorder: | |
UnderlineInputBorder(borderSide: BorderSide(color: Colors.white))); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
singUp() async { | |
if(formKey.currentState.validate()){ | |
setState(() { | |
isLoading = true; | |
}); | |
await authService.signUpWithEmailAndPassword(emailEditingController.text, | |
passwordEditingController.text).then((result){ |