mobily_lib 2.0.1
mobily_lib: ^2.0.1 copied to clipboard
A package created to provide flutter widgets, services, helpers and structures to be used in mobile projects built by SamuelGadiel.
2.0.1 #
- Update Flutter version to v3.24.3;
- Rename
CarouselControllertoCarouselPageController.
2.0.0 #
- Breaking changes.
1.6.0 #
-
Creates
CardSkeletonto help when creating cards in the app. -
Creates
Labelfor defining texts like a chip. -
Creates
TableCardfor showing a card with three fields (TitleAndValue) and a status field (Label). -
Creates
MaskHelperfor inserting masks in a string.MaskHelper.applyfor applying a generic mask;MaskHelper.applyCpfMaskfor applying a CPF mask in a string;MaskHelper.applyCnpjMaskfor applying a CNPJ mask in a string.
-
Creates
PagedResponseandPaginationfor handling pagination requests. -
Refacts
InfinityListto use theinfinity_scroll_paginationpackage. -
Updates the example to reflects the new
InfinityList.
1.5.6 #
- Changes
CacheServiceto only have asetmethod for both create and update actions in cache. If the data is not present in the cache it will create a new register for thatkey. Otherwise, it will just update the value referenced by thekey.
1.5.5 #
- Testing github actions caching system.
1.5.0 #
-
Adds
FormControllerto create keys for using and modifing forms with ease. -
Adds
FormInputto work withFormControllerkey. It's basically a controlledTextField. -
Exposes
FlutterFormBuilderandFormBuilderValidatorstypes. -
Adds unfocus feature to
Buttonwith the boolean value ofunfocusOnTap. Defaults totrue. -
Adds a field called
errorMessageto store exception messages in controller. -
Adds
ExceptionExtensionto formatExceptionmessage without the name of the class. -
Adds
IconExtensionto cloneIcon's using a simple method calledcopyWith.
1.4.1 #
-
Improves caching Flutter in github actions.
-
Changes project folder structure.
-
Separates
Parserlogic fromClient. Now you can callParser.fromJson()to parse client response.
1.4.0 #
-
Change
Controllerto useChangeNotifier, removing theblocdependency. 🎉 -
Update example to use the
Controller. -
Adds
pubspec.lockto versioning.
1.3.7 #
-
Changes
Controllerto useCubitinstead ofValueNotifier. -
Adds
Observerto listen to changes in aController. This component does not rebuild the widget. -
Adds
Reactto rebuild the widget when the state of theControllerchanges. -
Adds
Consumerto listen to changes and rebuild the widget.
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.