Register Impl
This commit is contained in:
@@ -12,6 +12,8 @@ class AppTextFormField extends StatelessWidget {
|
||||
this.keyboardType,
|
||||
this.onChanged,
|
||||
this.validator,
|
||||
this.readOnly = false,
|
||||
this.onTap,
|
||||
});
|
||||
|
||||
final String? hintText;
|
||||
@@ -23,6 +25,8 @@ class AppTextFormField extends StatelessWidget {
|
||||
final TextInputType? keyboardType;
|
||||
final ValueChanged<String>? onChanged;
|
||||
final String? Function(String?)? validator;
|
||||
final bool readOnly;
|
||||
final Function()? onTap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -42,6 +46,8 @@ class AppTextFormField extends StatelessWidget {
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
validator: validator,
|
||||
onTap: onTap,
|
||||
readOnly: readOnly,
|
||||
decoration: InputDecoration(
|
||||
hintText: hintText,
|
||||
prefixIcon: prefixIcon,
|
||||
|
||||
Reference in New Issue
Block a user