I'm trying to make a TextFormField to enter money with the currency_text_input_formatter package. I put it in showModalBottomSheet.
This is what happens when I open showModalBottomSheet:
When you make a change with the keyboard:
As you can see, this time the icon of the TRY currency has arrived. When I open the showModalBottomSheet, I want the TRY currency icon to appear. I need to make a change on the keyboard in order for the actual currency, TRY, to appear. When the showModalBottomSheet opens, I want it to show (TRY) icon correctly.
How can I solve this problem?
textFormField codes:
TextFormField(
style: TextStyle(fontSize: 19),
decoration: InputDecoration(
border: OutlineInputBorder(),
),
initialValue: _fiyat.format(snapshot.data!.docs[index].data()["urunFiyati"]),
inputFormatters: <TextInputFormatter>[
CurrencyTextInputFormatter(
locale: 'tr_TR',
decimalDigits: 2,
symbol: '₺',
),
],
keyboardType: TextInputType.number,
),
Thanks in advance for the help :)

