mobily_lib 2.0.1 copy "mobily_lib: ^2.0.1" to clipboard
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 CarouselController to CarouselPageController.

2.0.0 #

  • Breaking changes.

1.6.0 #

  • Creates CardSkeleton to help when creating cards in the app.

  • Creates Label for defining texts like a chip.

  • Creates TableCard for showing a card with three fields (TitleAndValue) and a status field (Label).

  • Creates MaskHelper for inserting masks in a string.

    • MaskHelper.apply for applying a generic mask;
    • MaskHelper.applyCpfMask for applying a CPF mask in a string;
    • MaskHelper.applyCnpjMask for applying a CNPJ mask in a string.
  • Creates PagedResponse and Pagination for handling pagination requests.

  • Refacts InfinityList to use the infinity_scroll_pagination package.

  • Updates the example to reflects the new InfinityList.

1.5.6 #

  • Changes CacheService to only have a set method for both create and update actions in cache. If the data is not present in the cache it will create a new register for that key. Otherwise, it will just update the value referenced by the key.

1.5.5 #

  • Testing github actions caching system.

1.5.0 #

  • Adds FormController to create keys for using and modifing forms with ease.

  • Adds FormInput to work with FormController key. It's basically a controlled TextField.

  • Exposes FlutterFormBuilder and FormBuilderValidators types.

  • Adds unfocus feature to Button with the boolean value of unfocusOnTap. Defaults to true.

  • Adds a field called errorMessage to store exception messages in controller.

  • Adds ExceptionExtension to format Exception message without the name of the class.

  • Adds IconExtension to clone Icon's using a simple method called copyWith.

1.4.1 #

  • Improves caching Flutter in github actions.

  • Changes project folder structure.

  • Separates Parser logic from Client. Now you can call Parser.fromJson() to parse client response.

1.4.0 #

  • Change Controller to use ChangeNotifier, removing the bloc dependency. 🎉

  • Update example to use the Controller.

  • Adds pubspec.lock to versioning.

1.3.7 #

  • Changes Controller to use Cubit instead of ValueNotifier.

  • Adds Observer to listen to changes in a Controller. This component does not rebuild the widget.

  • Adds React to rebuild the widget when the state of the Controller changes.

  • Adds Consumer to listen to changes and rebuild the widget.

1.3.6 #

  • Fixes Controller emit state scheduling.

1.3.5 #

  • Fixes SnackBarMessage scheduling.

1.3.4 #

  • Fixes CacheService initialization.

1.3.3 #

  • Fixes CacheService initialization.

1.3.2 #

  • Changes name of SecureCacheImplementation to SecureCacheServiceImplementation.

1.3.1 #

  • Updates android dependencies of the android example.

  • Changes CacheService nomenclature:

    • 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 Button for 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. The Button() constructor defaults to a filled button.

1.2.10 #

  • Changes Response's header and extra to be not null.

  • Adds ShimmerBase and ShimmerContainer for creating loading shimmers.

  • Exposes the Shimmer class so projects don't have to depend on it.

  • Adds ColorExtension for dealing with color conversions:

    • brighterColorFrom for lighten a color by a given variance;
    • darkerColorFrom for darken a color by a given variance;
    • defineColorBasedOnBackground for defining between a light and a dark color tones considering the color luminance when compared with the background.
  • Adds StringExtension for dealing with string conversions:

    • asHexColor for converting a hex formatted string to a Color.

1.2.9 #

  • Adds Response, a class to represent the response for the Client. You can pass the type of the response data by setting a generic variable T when 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 the DSON.

  • Adds JwtDecoder, a helper class to parse JWT tokens to a Map<String, dynamic> type.

1.2.7 #

  • Changes SecureCacheService to have an internal singleton of FlutterSecureStorage, removing the project dependency of the flutter_secure_storage package.

1.2.6 #

  • Adds CacheServiceAbstraction, an interface for every cache service implemented by the project.

  • Adds CacheService, an unencrypted cache implementation using hive and isar_flutter_libs.

  • Adds SecureCacheService, an encrypted cache implementation using flutter_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 DateTimeHelper for parssing and converting dates:

    • stringToDateTime for converting String with some given pattern to a DateTime. Return null if can't convert;
    • dateTimeToString for converting DateTime to a String with a given pattern. Return null if can't convert;
    • formatString for converting String with some given pattern to a String with some other pattern. Return null if can't convert;
    • getDateTimeFromIp for getting the current DateTime from Google's NTP server. Returns DateTime.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 Json and JsonList types for client returns.

1.2.2 #

  • Makes response parser an optional feature. To use it, pass the Parser class 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 SnackbarMessage helper to show snackbars without context.

1.1.1 #

  • Fix linter warnings to improve package score.

1.1.0 #

  • Components

    • Adds InfinityList component to deal with paged requests.
    • Adds Result component to deal with states in the screen
  • Helpers

    • Adds Debouncer for delayed actions.
    • Adds Mutex for queued actions.
    • Adds Logger for logging informations with some colors and styles.
  • Network

    • Adds Client as an abstraction of a HTTP Client.
    • Adds DioClient implementation of the Client.
    • Adds LoggerInterceptor for debuging requests.
  • Infrastructure

    • Adds Controller as a state manager.
  • 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.
0
likes
40
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A package created to provide flutter widgets, services, helpers and structures to be used in mobile projects built by SamuelGadiel.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

MIT (license)

Dependencies

cached_network_image, cached_query, collection, dio, easy_mask, flutter, flutter_form_builder, flutter_secure_storage, form_builder_validators, hive, icons_plus, infinite_scroll_pagination, intl, isar_flutter_libs, meta, ntp, path_provider, shimmer

More

Packages that depend on mobily_lib