Тёмный

Formatting TextFields In Flutter With Pattern_Formatter 

Bleyl Dev
Подписаться 5 тыс.
Просмотров 4,8 тыс.
50% 1

This tutorial goes through how to format TextFields with the pattern_formatter package in Flutter. Format text to fit proper number, credit card number and date formatting by using the pattern_formatter package. For more weekly Flutter content be sure to subscribe to the channel and follow @BleylDev on Twitter.
Package: pub.dev/packag...
Twitter: / bleyldev

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@BleylDev
@BleylDev 4 года назад
Apologies to anyone who had issues viewing the original version. The upload didn't process correctly and because of that was showing a really poor quality video.
@vladventura1928
@vladventura1928 3 года назад
I think that if there was a way to specify how many decimal digits a number has, then this would be the best alternative to building something from scratch. It's good but if you keep typing, let's say, 7 after the 3 digits are there, it'll start to round. them, which is not really pleasing to look at, but that's just me.
@ExtraServingsBTS
@ExtraServingsBTS 4 года назад
yeah much better. I'd consider bumping up the font size in vscode for your videos though.
@BleylDev
@BleylDev 4 года назад
I appreciate the feedback! I'll be sure to do that moving forward
@nicoaybar9478
@nicoaybar9478 3 года назад
Is there anyway to change the Thousands formatter commas to dots?
@BleylDev
@BleylDev 3 года назад
Sorry I didn't see this sooner Nico, I hope my response on Twitter answered your question!
@quochungvu359
@quochungvu359 2 года назад
@@BleylDev Can we change thousands formatter commas to dots??
@waseurarpon8352
@waseurarpon8352 4 года назад
How to avoid comma with thousandsFormatter??
@BleylDev
@BleylDev 4 года назад
If you don't want any commas then just don't use the formatter. Default text shouldn't have any. The thousandsFormatter is intended for when you want to format numbers with commas
@BleylDev
@BleylDev 4 года назад
Just set the keyboard type to TextInputType.number and then don't format the text in any way
@waseurarpon8352
@waseurarpon8352 4 года назад
@@BleylDev Thanks a lot, for your support.
@BleylDev
@BleylDev 4 года назад
No problem! Thanks for supporting the channel!