appcraft_utils_flutter 0.2.1
appcraft_utils_flutter: ^0.2.1 copied to clipboard
Lightweight Dart utilities and Flutter-friendly extensions for forms, validations, mappers, models, exceptions, notifiers and localization.
appcraft_utils_flutter #
0.2.0 #
Breaking Changes #
ACEmailequality andhashCodenow includeisRequired;ACTextequality andhashCodenow includeminLengthandmaxLength. Migration: fields with different settings are now distinct in aSet, asMapkeys and insideEquatablestates (for example, bloc states), where they used to collapse into one; to compare by value only, comparevalueexplicitly.- The minimum
equatableversion is now 2.1.0. Migration: allowequatable: ^2.1.0in the app if it pins an older version.
Fixed #
- An empty optional
ACEmail(isRequired: false) is now valid; the format is checked only for a non-empty value. ACText(minLength: 0)no longer makes the field required: an empty value is valid unlessminLengthis greater than 0.ACNotifier: afterdispose(),listenandlistenAnyreturn an already completed subscription instead of throwingStateError, and a saved event is dropped instead of being delivered;sendafter (or during)dispose()is ignored; callingdispose()again is safe.
Changed #
ACInputusesEquatableas a mixin instead of the deprecatedEquatableMixin.- Formatted
lib/andexample/withdart format.
0.1.1 #
- Renamed the notifier source file to
lib/src/notifier/src/ac_notifier.dart(the old name used the Cyrillic letter U+0441 instead of the Latinc): it violated thefile_nameslint and lowered the pub.flutter-io.cn "Pass static analysis" score.
0.1.0 #
- Prepared for the first public release on pub.flutter-io.cn.
- Filled in
pubspec.yamlmetadata:description,homepage,issue_tracker,topics. - Removed
environment.flutter— the package is pure-Dart and does not depend on the Flutter SDK. - Added
example/with a minimal demo of the public API (ACEmail,ACText,ACEnumByNameOrNull). - Documented all public symbols across 7 modules (
exceptions,extensions,inputs,localization,mappers,models,notifier) with///doc-comments. - Tuned
analysis_options.yamlto the recommended ruleset withpublic_member_api_docsenabled.
0.0.3 #
- Added
ACEntityMapper. - Added
ACEnumByNameOrNullandACEnumComparisonOperators.
0.0.2 #
- Added in-code comments.
- Updated
ACRequiredValidation:- Supports values of any type.
- Null check.
- Empty string check (
String). - Empty collection check (
Iterable).
0.0.1 #
- Initial version.