flutterfly

A collection of common widgets, validators, extensions, utilities, as well as some other stuffs that are currently non-existent in Flutter.

Getting Started

  • Add flutterfly to your flutter package's pubspec.yaml file :

    dependencies:
      flutterfly: ^<latest_version>
    

Main Considerations

  • Only includes the stuffs that don't exist yet, yet essentially important and is broadly re-used across our projects, hence we expect this library to be open for extension, but closed for modification
  • Brutally tested

Contents

  • Views

    • Widget Components
      • URL Image with loading progress
      • Timeline
  • Common

    • Extensions
      • String Extensions
        • Capitalize
        • ToDateTime
        • Digit Only
        • Ellipsis
        • etc.
      • Num Extensions
        • isBetween(min, max)
      • Map Extensions
        • tryCast
        • hasValue(String key)
        • toList
      • DateTime Extensions
        • Calculate Age
    • Validators
      • String Validator
        • Required
        • Min Length
        • Special Characters
        • Email
        • Valid Date
        • Allow Digits Only
        • Disallow any digits
        • No white space
        • Contains
        • etc.
      • Num Validator
        • Required
        • Positive
        • Greater Than
        • Less Than
        • Between
        • etc.
    • Utils
      • Connection Utils
        • Check Internet Connection

Documentation

Validators

Please check out the Unit Tests as well as the Example

Extensions

Please check out the Unit Tests

Pull requests are welcome :)

License

MIT

Libraries

flutterfly