ui fixing
This commit is contained in:
@@ -41,6 +41,7 @@ class FormLabelTextField extends StatelessWidget {
|
||||
type == "password"
|
||||
? PasswordField(
|
||||
controller: textEditingController,
|
||||
hintText: hintText,
|
||||
)
|
||||
: textFormField(
|
||||
onInput: onChangeFun,
|
||||
|
||||
@@ -13,8 +13,9 @@ import 'bloc/password_field/password_visibility_state.dart';
|
||||
|
||||
class PasswordField extends StatelessWidget {
|
||||
final TextEditingController controller;
|
||||
|
||||
const PasswordField({super.key, required this.controller});
|
||||
final String hintText;
|
||||
const PasswordField(
|
||||
{super.key, required this.controller, required this.hintText});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -121,7 +122,7 @@ class PasswordField extends StatelessWidget {
|
||||
)
|
||||
],
|
||||
),
|
||||
hintText: 'Password',
|
||||
hintText: hintText,
|
||||
suffixIcon: IconButton(
|
||||
icon: SvgPicture.asset(
|
||||
state.isPasswordVisible
|
||||
|
||||
Reference in New Issue
Block a user