This commit is contained in:
tzw
2024-02-21 17:14:59 +06:30
parent c2851e3026
commit 2a1aa9662d

View File

@@ -22,21 +22,9 @@ class _PinLoginPageState extends State<PinLoginPage> {
final _formKey = GlobalKey<FormState>();
TextEditingController _fcsIdCtl = new TextEditingController();
@override
void initState() {
super.initState();
if (mounted) {
setState(() {});
}
}
Widget build(BuildContext context) {
final fcsIdBox = TextFormField(
controller: _fcsIdCtl,
focusNode: FocusNode(),
onChanged: (value) {
_fcsIdCtl.value = TextEditingValue(
text: value.toUpperCase(),
@@ -56,8 +44,10 @@ class _PinLoginPageState extends State<PinLoginPage> {
cursorColor: primaryColor,
keyboardType: TextInputType.text,
decoration: new InputDecoration(
prefixText: prefixText,
prefixStyle: TextStyle(color: Colors.black),
prefix: Text(
prefixText,
style: TextStyle(color: Colors.black),
),
contentPadding: EdgeInsets.all(0),
labelStyle: newLabelStyle(color: Colors.black54, fontSize: 17),
enabledBorder: UnderlineInputBorder(