login impl
This commit is contained in:
@@ -10,6 +10,7 @@ class AppPasswordTextFormField extends StatefulWidget {
|
||||
this.prefixIcon,
|
||||
this.keyboardType,
|
||||
this.onChanged,
|
||||
this.validator,
|
||||
});
|
||||
|
||||
final String? hintText;
|
||||
@@ -19,6 +20,7 @@ class AppPasswordTextFormField extends StatefulWidget {
|
||||
final Widget? prefixIcon;
|
||||
final TextInputType? keyboardType;
|
||||
final ValueChanged<String>? onChanged;
|
||||
final String? Function(String?)? validator;
|
||||
|
||||
@override
|
||||
State<AppPasswordTextFormField> createState() =>
|
||||
@@ -26,7 +28,7 @@ class AppPasswordTextFormField extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _AppPasswordTextFormFieldState extends State<AppPasswordTextFormField> {
|
||||
bool isPasswordVisible = false;
|
||||
bool isPasswordVisible = true;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
@@ -48,6 +50,7 @@ class _AppPasswordTextFormFieldState extends State<AppPasswordTextFormField> {
|
||||
color: AppColor.textPrimary,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
validator: widget.validator,
|
||||
decoration: InputDecoration(
|
||||
hintText: widget.hintText,
|
||||
prefixIcon: widget.prefixIcon,
|
||||
|
||||
Reference in New Issue
Block a user