+ChangeNotifier Fixes
+Signout Fixes +
This commit is contained in:
+13
-13
@@ -23,12 +23,8 @@ class _LoginPageState extends State<LoginPage> {
|
||||
String? _email;
|
||||
String? _password;
|
||||
|
||||
late GlobalKey<FormState> _formKey;
|
||||
late MessagingProviders _auth;
|
||||
|
||||
_LoginPageState() {
|
||||
_formKey = GlobalKey<FormState>();
|
||||
}
|
||||
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
|
||||
MessagingProviders _auth = MessagingProviders.instance;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -40,7 +36,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
body: Align(
|
||||
child: ChangeNotifierProvider<MessagingProviders>.value(
|
||||
value: MessagingProviders.instance,
|
||||
value: _auth,
|
||||
child: _loginPageUI(),
|
||||
),
|
||||
),
|
||||
@@ -133,9 +129,11 @@ class _LoginPageState extends State<LoginPage> {
|
||||
},
|
||||
cursorColor: Colors.white,
|
||||
decoration: InputDecoration(
|
||||
hintText: "email address",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white))),
|
||||
hintText: "email address",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -158,9 +156,11 @@ class _LoginPageState extends State<LoginPage> {
|
||||
obscureText: true,
|
||||
cursorColor: Colors.white,
|
||||
decoration: InputDecoration(
|
||||
hintText: "password",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white))),
|
||||
hintText: "password",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user