Fix login email and password values not copied to validation values

This commit is contained in:
Joey Boerwinkel 2023-01-15 15:46:08 +01:00
parent d19b5cac7b
commit 17ce9a54f7
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,6 @@
## 3.1.1
* Fix login values not copied to validation
## 3.0.0 ## 3.0.0
* Added login options to loginbuilders for more customization * Added login options to loginbuilders for more customization

View file

@ -61,6 +61,14 @@ class _EmailPasswordLoginFormState extends State<EmailPasswordLoginForm> {
} }
} }
@override
void initState() {
super.initState();
_currentEmail = widget.options.initialEmail;
_currentPassword = widget.options.initialPassword;
_validate();
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
var theme = Theme.of(context); var theme = Theme.of(context);

View file

@ -1,6 +1,6 @@
name: flutter_login name: flutter_login
description: A new Flutter package project. description: A new Flutter package project.
version: 3.1.0 version: 3.1.1
environment: environment:
sdk: ">=2.18.1 <3.0.0" sdk: ">=2.18.1 <3.0.0"