+ChangeNotifier Fixes
+Signout Fixes +
This commit is contained in:
@@ -26,10 +26,8 @@ class _RegisterationPageState extends State<RegisterationPage> {
|
||||
String? _email;
|
||||
String? _password;
|
||||
|
||||
GlobalKey<FormState> _formKey;
|
||||
late MessagingProviders _auth;
|
||||
|
||||
_RegisterationPageState() : _formKey = GlobalKey<FormState>();
|
||||
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
|
||||
MessagingProviders _auth = MessagingProviders.instance;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -43,7 +41,7 @@ class _RegisterationPageState extends State<RegisterationPage> {
|
||||
// color: Colors.blue,
|
||||
alignment: Alignment.center,
|
||||
child: ChangeNotifierProvider<MessagingProviders>.value(
|
||||
value: MessagingProviders.instance,
|
||||
value: _auth,
|
||||
child: _registerationPageUI(),
|
||||
),
|
||||
),
|
||||
@@ -163,9 +161,11 @@ class _RegisterationPageState extends State<RegisterationPage> {
|
||||
},
|
||||
cursorColor: Colors.white,
|
||||
decoration: InputDecoration(
|
||||
hintText: "name",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white))),
|
||||
hintText: "name",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -189,9 +189,11 @@ class _RegisterationPageState extends State<RegisterationPage> {
|
||||
},
|
||||
cursorColor: Colors.white,
|
||||
decoration: InputDecoration(
|
||||
hintText: "email",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white))),
|
||||
hintText: "email",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -214,9 +216,11 @@ class _RegisterationPageState extends State<RegisterationPage> {
|
||||
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