+ChangeNotifier Fixes

+Signout Fixes
+
This commit is contained in:
2025-04-06 18:23:35 +01:00
parent 13042f8133
commit d4fc16e412
18 changed files with 375 additions and 597 deletions
+18 -14
View File
@@ -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),
),
),
);
}