feat: update user
This commit is contained in:
@@ -9,6 +9,7 @@ class AppTextFormField extends StatelessWidget {
|
||||
required this.prefixIcon,
|
||||
this.validator,
|
||||
this.onChanged,
|
||||
this.keyboardType = TextInputType.text,
|
||||
});
|
||||
|
||||
final TextEditingController? controller;
|
||||
@@ -17,6 +18,7 @@ class AppTextFormField extends StatelessWidget {
|
||||
final IconData prefixIcon;
|
||||
final String? Function(String?)? validator;
|
||||
final Function(String)? onChanged;
|
||||
final TextInputType keyboardType;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -33,7 +35,7 @@ class AppTextFormField extends StatelessWidget {
|
||||
const SpaceHeight(8),
|
||||
TextFormField(
|
||||
controller: controller,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
keyboardType: keyboardType,
|
||||
cursorColor: AppColor.primary,
|
||||
onChanged: onChanged,
|
||||
style: AppStyle.md.copyWith(color: AppColor.textPrimary),
|
||||
|
||||
Reference in New Issue
Block a user