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.0
import '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 📜