From 3513c632599f6c6637078893afe5476a54378519 Mon Sep 17 00:00:00 2001 From: Efril Date: Fri, 10 Apr 2026 09:50:44 +0700 Subject: [PATCH] fix qty split bill --- .../split_bill/widgets/split_bill_right_panel.dart | 14 ++++++++------ pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) 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