feat: login api
This commit is contained in:
@@ -8,6 +8,7 @@ class AppPasswordTextFormField extends StatefulWidget {
|
||||
this.hintText,
|
||||
required this.prefixIcon,
|
||||
this.validator,
|
||||
this.onChanged,
|
||||
});
|
||||
|
||||
final TextEditingController? controller;
|
||||
@@ -15,6 +16,7 @@ class AppPasswordTextFormField extends StatefulWidget {
|
||||
final String? hintText;
|
||||
final IconData prefixIcon;
|
||||
final String? Function(String?)? validator;
|
||||
final Function(String)? onChanged;
|
||||
|
||||
@override
|
||||
State<AppPasswordTextFormField> createState() =>
|
||||
@@ -42,6 +44,7 @@ class _AppPasswordTextFormFieldState extends State<AppPasswordTextFormField> {
|
||||
cursorColor: AppColor.primary,
|
||||
obscureText: _obscurePassword,
|
||||
style: AppStyle.md.copyWith(color: AppColor.textPrimary),
|
||||
onChanged: widget.onChanged,
|
||||
decoration: InputDecoration(
|
||||
hintText: widget.hintText,
|
||||
prefixIcon: LineIcon(
|
||||
|
||||
@@ -8,6 +8,7 @@ class AppTextFormField extends StatelessWidget {
|
||||
this.hintText,
|
||||
required this.prefixIcon,
|
||||
this.validator,
|
||||
this.onChanged,
|
||||
});
|
||||
|
||||
final TextEditingController? controller;
|
||||
@@ -15,6 +16,7 @@ class AppTextFormField extends StatelessWidget {
|
||||
final String? hintText;
|
||||
final IconData prefixIcon;
|
||||
final String? Function(String?)? validator;
|
||||
final Function(String)? onChanged;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -33,6 +35,7 @@ class AppTextFormField extends StatelessWidget {
|
||||
controller: controller,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
cursorColor: AppColor.primary,
|
||||
onChanged: onChanged,
|
||||
style: AppStyle.md.copyWith(color: AppColor.textPrimary),
|
||||
decoration: InputDecoration(
|
||||
hintText: hintText,
|
||||
|
||||
Reference in New Issue
Block a user