flexi_cart 0.1.1
flexi_cart: ^0.1.1 copied to clipboard
A versatile and reactive cart solution for Flutter apps, supporting grouping, notes, delivery, quantity control, and custom logic.
0.1.1 #
License Update: Changed the LICENSE file to the MIT License and updated the copyright to abed-supy-io.
Pubspec Update: Updated the package description, version to 0.1.1, repository, issue tracker, homepage and add topics to pubspec.yaml.
Cart Input Formatter: Modified the formatEditUpdate method in cart_input_formatter.dart to handle empty strings and special characters like ',' and '.' more gracefully.
Cart Test: added decrement test case in flexi_cart_test.dart.
Cart Input Widget: Added a condition to _onTextChanged in cart_input_widget.dart to handle zero quantity.
Cart Input Widget: remove unused _quantityNotifier.removeListener in dispose.
Cart Mixins: remove unused dispose in CartChangeNotifierDisposeMixin
FlexiCartTest: added resetItems and reset test case in flexi_cart_test.dart.
example: updated example app and add more test cases.
FlexiCart: exported mixins.dart in flexi_cart.dart.
FlexiCartInputTest: fix type in CartInput.
Added CONTRIBUTING.md with guidelines for contributing.
0.1.0 #
- Introduced
CartQuantityInputFormatterfor quantity fields, allowing customizable decimal precision. - Introduced
CartPriceInputFormatterfor price fields, allowing customizable decimal precision. - Added
CartInputNumberFormatteras a base class to normalize Arabic digits, limit decimal places, and constrain values. - Deprecated
QuantityInputFormatter, advising to useCartQuantityInputFormatterinstead. - Improved documentation.
- Added various example on cart input.
- Adds
description,metadata,tax, anddiscountfields in theICartItemmodel - Added
CartChangeNotifierDisposeMixinto handle the disposal ofChangeNotifier. - Add flexi-cart formatter and mixin tests.
- Add flexi-cart input test.
0.0.9 #
- Added
ChangeNotifierDisposeMixinto prevent callingnotifyListeners()after dispose. - Updated test cases to include
shouldNotifyListenersoption and assertDateTimetype.
0.0.8 #
- Removed
removeNullQuantityoption & fixed cart logic.
0.0.7 #
- Added
removeNullQuantityoption.
0.0.5 #
- Allowed
,inCartInputwidget. - Added group methods in cart.
0.0.4 #
- Added
setNote()&setDeliveredAt()functions instead of setters, withshouldNotifyListenerstoggle.
0.0.3 #
- Added
Ordableproperty.
0.0.2 #
- Updated README file.
0.0.1 #
- Initial version.