fleasy 0.1.0
fleasy: ^0.1.0 copied to clipboard
Useful and easy to use extensions, helper classes and widgets to help create Flutter apps easier.
Fleasy #
This package helps creating Flutter apps easier by providing useful and easy to use extensions, helper classes and widgets.
The goal is that by using this package you have to write less (repeating) and more clean and readable code.
This package contains the following features:
Extensions: #
-
BuildContextmediaQueryscreenSizescreenWidthscreenHeightscreenOrientationscreenIsLandscapescreenIsPortraitformFactorcloseKeyboard()pushRoute(...)pushPage(...)popPage()canPopPage()
-
StringaddHttps()isValidEmailisInvalidEmail
-
String?isNotBlankisBlankisValidEmailisInvalidEmailtoNullIfBlank()
-
DateTimecopyWith(...)isTodayisYesterdayisTomorrowisFutureDayisSameDay(...)timeIsZerocopyWithEmptyTime()format(...)
-
List<DateTime>containsDate(...)indexOfDate(...)
-
List?isNotBlankisBlank
-
List<T>find(...)
Helper Classes: #
-
DateDate.today()Date.tomorrow()Date.yesterday()
-
DeviceTypeDeviceType.isIOSDeviceType.isAndroidDeviceType.isMacOSDeviceType.isLinuxDeviceType.isWindowsDeviceType.isWebDeviceType.isDesktopDeviceType.isMobileDeviceType.isDesktopOrWebDeviceType.isMobileOrWeb
-
Insetsxxsxssmlxlxxl
Flutter Widgets: #
- EasyStreamBuilder(...)
- EasyFutureBuilder(...)
To-Do's: #
- ❌ Add more tests
- ❌ Document the complete code
- ❌ Create example app
Note: #
This package is still in early stages. If you notice any bugs not present in issues, please file a new issue. If you are willing to fix or enhance things yourself, you are very welcome to make a pull request.