create order -> upload bill
This commit is contained in:
@@ -59,6 +59,8 @@ class CheckoutPage extends HookConsumerWidget {
|
||||
// Price negotiation
|
||||
final needsNegotiation = useState<bool>(false);
|
||||
|
||||
final needsContract = useState(false);
|
||||
|
||||
// Watch API provider for payment terms
|
||||
final paymentTermsListAsync = ref.watch(paymentTermsListProvider);
|
||||
|
||||
@@ -240,6 +242,40 @@ class CheckoutPage extends HookConsumerWidget {
|
||||
// Price Negotiation Section
|
||||
PriceNegotiationSection(needsNegotiation: needsNegotiation),
|
||||
|
||||
const SizedBox(height: AppSpacing.md),
|
||||
|
||||
|
||||
Container(
|
||||
margin: const EdgeInsets.symmetric(horizontal: AppSpacing.md),
|
||||
padding: const EdgeInsets.symmetric(horizontal: AppSpacing.md),
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xFFFFF8E1),
|
||||
borderRadius: BorderRadius.circular(AppRadius.card),
|
||||
border: Border.all(color: const Color(0xFFFFD54F)),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Checkbox(
|
||||
value: needsContract.value,
|
||||
onChanged: (value) {
|
||||
needsContract.value = value ?? false;
|
||||
},
|
||||
activeColor: AppColors.warning,
|
||||
),
|
||||
const Expanded(
|
||||
child: Text(
|
||||
'Yêu cầu hợp đồng',
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Color(0xFF212121),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
const SizedBox(height: AppSpacing.md),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user