normie 2.0.1 copy "normie: ^2.0.1" to clipboard
normie: ^2.0.1 copied to clipboard

Your go-to swiss knife for flutter utlities.

Normie 🛠️ #

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 🚀

What Changed? 🆕 #

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');

What's in the box? 📦 #

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!

Getting Started 🚀 #

dependencies:
  normie: ^2.0.0

Quick Example 💡 #

import 'package:normie/normie.dart';

void main() {
  // Validate stuff
  final isValid = Normie.check.isEmail('cool@email.com');
  
  // 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');
}

Need Help? 🤝 #

Got questions? Found a bug? Wanna contribute? Hit me up at chat@codesadhu.com or create an issue on GitHub!


Made with ❤️ by CodeSadhu
MIT Licensed 📜

7
likes
110
points
31
downloads

Publisher

verified publishercodesadhu.in

Weekly Downloads

Your go-to swiss knife for flutter utlities.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl, shared_preferences

More

Packages that depend on normie