Successfully passsed data between screens and imported UserRegistrationSheet for all screens

This commit is contained in:
2023-12-25 12:12:23 +03:00
parent a621f8d1da
commit dbe2e40e3b
16 changed files with 57 additions and 36 deletions

View File

@@ -25,6 +25,7 @@ class CustomTextFormField extends StatelessWidget {
this.fillColor,
this.filled = true,
this.validator,
this.onSaved,
}) : super(
key: key,
);
@@ -71,6 +72,8 @@ class CustomTextFormField extends StatelessWidget {
final FormFieldValidator<String>? validator;
final void Function(String?)? onSaved;
@override
Widget build(BuildContext context) {
return alignment != null
@@ -94,6 +97,7 @@ class CustomTextFormField extends StatelessWidget {
maxLines: maxLines ?? 1,
decoration: decoration,
validator: validator,
onSaved: onSaved,
),
);
InputDecoration get decoration => InputDecoration(