CodeSadhu/normie

A Dart package with the most commonly used helper methods, to make the life of a Flutter dev easier :)

โ˜… 2Forks 0DartGitHub โ†—Compare

Project website โ†—

flutterflutter-packageflutter-packages

README

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('[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');
}

Need Help? ๐Ÿค

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 ๐Ÿ“œ

Contributors

CodeSadhu

Issues