fixedPasswordField method
Implementation
TextFormField fixedPasswordField() {
return TextFormField(
key: const Key("password_input_field"),
textInputAction: TextInputAction.next,
obscureText: true,
validator: (value) {
if (value == null || value.length < 4) {
return widget.langRequired;
}
return null;
},
controller: passwordController,
decoration: InputDecoration(
labelText: widget.langPassword,
labelStyle: TextStyle(color: Theme.of(context).colorScheme.secondary),
border: UnderlineInputBorder(
borderSide: BorderSide(color: Theme.of(context).primaryColor)),
),
keyboardType: TextInputType.visiblePassword,
);
}