order success

This commit is contained in:
Phuoc Nguyen
2025-11-24 17:28:17 +07:00
parent 1851d60038
commit c3b5653420
9 changed files with 55 additions and 34 deletions

View File

@@ -13,8 +13,8 @@ import 'package:worker/core/theme/colors.dart';
/// Allows user to request price negotiation instead of direct order.
class PriceNegotiationSection extends HookWidget {
const PriceNegotiationSection({super.key, required this.needsNegotiation});
final ValueNotifier<bool> needsNegotiation;
const PriceNegotiationSection({super.key, required this.ignorePricingRule});
final ValueNotifier<bool> ignorePricingRule;
@override
Widget build(BuildContext context) {
@@ -29,9 +29,9 @@ class PriceNegotiationSection extends HookWidget {
child: Row(
children: [
Checkbox(
value: needsNegotiation.value,
value: ignorePricingRule.value,
onChanged: (value) {
needsNegotiation.value = value ?? false;
ignorePricingRule.value = value ?? false;
},
activeColor: AppColors.warning,
),