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
- Widget Components
-
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
- String Extensions
- Validators
- String Validator
- Required
- Min Length
- Special Characters
- Valid Date
- Allow Digits Only
- Disallow any digits
- No white space
- Contains
- etc.
- Num Validator
- Required
- Positive
- Greater Than
- Less Than
- Between
- etc.
- String Validator
- Utils
- Connection Utils
- Check Internet Connection
- Connection Utils
- Extensions
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