vuitv 3.28.1
vuitv: ^3.28.1 copied to clipboard
A flutter project code base created by VuiTv ................
🧑💻 vuitv code base #
A collection of utilities and formatters for Flutter applications, created by VuiTv 🤖
Setup #
Add to your pubspec.yaml:
dependencies:
vuitv: ^3.28.1
Features #
Text Input Formatters #
- Currency formatting (USD, VND)
- Phone number formatting (US and Vietnamese formats)
- Hex color input
- Text capitalization
- Number formatting
Examples #
Currency Formatter
// US currency formatter ($)
final usFormatter = CurrencyInputFormatter();
// Output: $1,234.56
// Vietnamese currency formatter (₫)
final vnFormatter = CurrencyInputFormatter();
// Output: 1,234₫
Phone Number Formatter
// US format
final phoneNumber = PhoneInputFormatter();
// Input: 1234567890
// Output: (123) 456-7890
// Vietnamese format
final vnPhone = PhoneInputFormatter();
// Input: 0123456789
// Output: 0123 456 789
Hex Color Formatter
final hexColor = HexColorInputFormatter();
// Input: #FF0000
// Output: Color(0xFFFF0000)
Text Capitalization
// Capitalize words
final wordCaps = TextCapitalizationFormatter.words();
// Input: hello world
// Output: Hello World
// Capitalize sentences
final sentenceCaps = TextCapitalizationFormatter.sentences();
// Input: hello. world.
// Output: Hello. World.