mobile_commons 1.2.7
mobile_commons: ^1.2.7 copied to clipboard
A package created to provide flutter widgets, services, helpers and structures to be used in mobile projects built by Zydon.
1.2.7 #
- Changes
SecureCacheServiceto have an internal singleton ofFlutterSecureStorage, removing the project dependency of theflutter_secure_storagepackage.
1.2.6 #
- Adds
CacheServiceAbstraction, an interface for every cache service implemented by the project - Adds
CacheService, an unencrypted cache implementation usinghiveandisar_flutter_libs - Adds
SecureCacheService, an encrypted cache implementation usingflutter_secure_storage
1.2.5 #
- Exposes dio interceptor classes by creating typedefs to represent them. By doing this, the project don't have to depend on dio just to create interceptors.
1.2.4 #
- Adds
DateTimeHelperfor parssing and converting datesstringToDateTimefor convertingStringwith some given pattern to aDateTime. Return null if can't convert.dateTimeToStringfor convertingDateTimeto aStringwith a given pattern. Return null if can't convert.formatStringfor convertingStringwith some given pattern to aStringwith some other pattern. Return null if can't convert.getDateTimeFromIpfor getting the currentDateTimefrom Google's NTP server. ReturnsDateTime.now()if can't reach NTP servers.
- Adds some common date time patterns to make it easier to use the
DateTimeHelper.
1.2.3 #
- Makes client returns only generics types, the null is now treated internally, and dynamic types are forbidden.
- Adds
JsonandJsonListtypes for client returns;
1.2.2 #
- Makes response parser an optional feature. To use it, pass the
Parserclass to the client. Otherwise, the client will respond with the raw json. - Organizes client options by creating its own class, named
ClientOptions.
1.2.1 #
- Fixes
Controller's [isFetchingCondition] being required
1.2.0 #
- Adds
SnackbarMessagehelper to show snackbars without context
1.1.1 #
- Fix linter warnings to improve package score
1.1.0 #
-
Components
- Adds
InfinityListcomponent to deal with paged requests - Adds
Resultcomponent to deal with states in the screen
- Adds
-
Helpers
- Adds
Debouncerfor delayed actions - Adds
Mutexfor queued actions - Adds
Loggerfor logging informations with some colors and styles
- Adds
-
Network
- Adds
Clientas an abstraction of a HTTP Client - Adds
DioClientimplementation of theClient - Adds
LoggerInterceptorfor debuging requests
- Adds
-
Infrastructure
- Adds
Controlleras a state manager
- Adds
-
Adds an example project with all of those features. The example also serves as a project architecture.
1.0.1 #
- Organize linter
1.0.0 #
- Initial version.