Yo! Welcome to Normie v2 - your Flutter/Dart utility belt just got a MAJOR upgrade! We've completely rebuilt everything to make your life even easier ๐
If you're coming from v1, heads up! We've reorganized everything into neat categories to keep things clean. Instead of Normie.method(), now you do Normie.category.method(). Trust us, it's way better this way!
Example:
// Old way (v1)
Normie.hexToColor('#ff42069');
// New way (v2)
Normie.palette.hexToColor('#ff42069');We've gone from 9 methods to a whole suite of tools:
- ๐ Cache stuff
Store things in memory, make em expire when you want - โ
Validation
Check emails, phone numbers, credit cards without the hastle - ๐
Date/Time
Format dates, get time ago, countdowns and more - ๐ฑ Device detection
Know what platform you are running on - ๐ File handling
MIME types, extensions, file type checks - ๐จ Colors
Convert hex to Color, make colors lighter/darker - ๐ช Collections
Work with lists like a boss - ๐ข Numbers
Format currencies, percentages, file sizes - ๐ Text
Slugify, mask text, remove accents, the works!
dependencies:
normie: ^2.0.0import 'package:normie/normie.dart';
void main() {
// Validate stuff
final isValid = Normie.check.isEmail('[email protected]');
// Format numbers
final money = Normie.numeric.formatCurrency(42069.42);
// Cache some data
Normie.cache.set('key', 'value');
// Handle colors
final color = Normie.palette.hexToColor('#ff42069');
}Got questions? Found a bug? Wanna contribute? Hit me up at [email protected] or create an issue on GitHub!
Made with โค๏ธ by CodeSadhu
MIT Licensed ๐