+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
+13 -13
View File
@@ -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),
),
),
);
}