diff --git a/lib/presentation/pages/split_bill/widgets/split_bill_right_panel.dart b/lib/presentation/pages/split_bill/widgets/split_bill_right_panel.dart index 06c4368..c71daa6 100644 --- a/lib/presentation/pages/split_bill/widgets/split_bill_right_panel.dart +++ b/lib/presentation/pages/split_bill/widgets/split_bill_right_panel.dart @@ -389,12 +389,14 @@ class _SplitBillRightPanelState extends State { ), GestureDetector( onTap: () { - context.read().add( - SplitBillFormEvent.itemQuantityChanged( - itemId: item.id, - quantity: selectedQty + 1, - ), - ); + if (selectedQty < maxQty) { + context.read().add( + SplitBillFormEvent.itemQuantityChanged( + itemId: item.id, + quantity: selectedQty + 1, + ), + ); + } }, child: Container( width: 32, diff --git a/pubspec.yaml b/pubspec.yaml index f418c9d..921ba28 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: "A new Flutter project." publish_to: "none" -version: 1.0.0+5 +version: 1.0.1+6 environment: sdk: ^3.8.1