mobile_commons 1.3.6
mobile_commons: ^1.3.6 copied to clipboard
A package created to provide flutter widgets, services, helpers and structures to be used in mobile projects built by Zydon.
1.3.6 #
- Fixes
Controlleremit state scheduling.
1.3.5 #
- Fixes
SnackBarMessagescheduling.
1.3.4 #
- Fixes
CacheServiceinitialization.
1.3.3 #
- Fixes
CacheServiceinitialization.
1.3.2 #
- Changes name of
SecureCacheImplementationtoSecureCacheServiceImplementation.
1.3.1 #
-
Updates android dependencies of the android example.
-
Changes
CacheServicenomenclature:UnsecureCacheServiceAbstraction=>CacheService;CacheService=>CacheServiceImplementation;SecureCacheServiceAbstraction=>SecureCacheService;SecureCacheService=>SecureCacheImplementation.
-
Adds more options to define states in the
Controller. Now you can inform the [loading], [error], [success] and [fetching] states directly in the super constructor. Only one state or condition function can be infered per state. -
Adds semantic way to get state from the
Controller. -
Adds an example using the cache.
-
Adds git workflow for publishing the package.
1.3.0 #
- Adds
Buttonfor creating buttons with a better syntax than the Material provides:Button.text()for creating a text button;Button.outlined()for creating an outlined button;Button.filled()for creating a filled button. TheButton()constructor defaults to a filled button.
1.2.10 #
-
Changes
Response's header and extra to be not null. -
Adds
ShimmerBaseandShimmerContainerfor creating loading shimmers. -
Exposes the
Shimmerclass so projects don't have to depend on it. -
Adds
ColorExtensionfor dealing with color conversions:brighterColorFromfor lighten a color by a given variance;darkerColorFromfor darken a color by a given variance;defineColorBasedOnBackgroundfor defining between a light and a dark color tones considering the color luminance when compared with the background.
-
Adds
StringExtensionfor dealing with string conversions:asHexColorfor converting a hex formatted string to a Color.
1.2.9 #
-
Adds
Response, a class to represent the response for theClient. You can pass the type of the response data by setting a generic variableTwhen calling the client. -
Adds
Unfocusable, a widget that allows the user to click elsewhere in the screen to dismiss a focused field.
1.2.8 #
-
Adds
JsonParser, which is a typedef of theDSON. -
Adds
JwtDecoder, a helper class to parse JWT tokens to aMap<String, dynamic>type.
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 dates:stringToDateTimefor 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.