1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
4import '../../../../../core/ui/widgets/custom_card.dart';
5import '../../energy/energy_screen.dart';
6import '../../operational_details_screen/views/operational_hours_view.dart';
7import '../../widgets/step_brogress_bar.dart';
13 State<ThirdPartyDeliveryView>
createState() => _ThirdPartyDeliveryViewState();
16class _ThirdPartyDeliveryViewState
extends State<ThirdPartyDeliveryView> {
37 Widget
build(BuildContext context) {
38 return SingleChildScrollView(
41 crossAxisAlignment: CrossAxisAlignment.start,
44 width:
double.infinity,
46 decoration: BoxDecoration(
47 color: Colors.blue.withOpacity(0.11),
48 borderRadius: BorderRadius.circular(10),
53 style: Theme.of(context)
56 ?.copyWith(
color: Colors.blue),
60 SizedBox(height: 10.sp),
64 crossAxisAlignment: CrossAxisAlignment.start,
70 SizedBox(height: 10.sp),
72 'Do You Use Third-Party Delivery Platforms (E.G., Talabat, Jahez)?',
73 style: Theme.of(context).textTheme.displaySmall?.copyWith(
77 SizedBox(height: 20.sp),
79 padding:
const EdgeInsets.only(bottom: 10),
80 child: CustomOptionButton(
87 SizedBox(height: 20.sp),
89 '(If Yes) What Is The Average Monthly Distance Covered For These Third-Party Deliveries (In Km)?',
90 style: Theme.of(context).textTheme.displaySmall?.copyWith(
94 SizedBox(height: 10.sp),
96 label:
'Monthly Distance',
100 SizedBox(height: 20.sp),
102 '(If Using Your Own Vehicles) What Is The Average Monthly Distance Covered (In Km)?',
103 style: Theme.of(context).textTheme.displaySmall?.copyWith(
107 SizedBox(height: 10.sp),
109 label:
'Monthly Distance',
112 SizedBox(height: 20.sp),
114 'Do You Encourage Sustainable Commuting Options For Staff (E.G., Carpooling, Public Transport Incentives)?',
115 style: Theme.of(context).textTheme.displaySmall?.copyWith(
119 SizedBox(height: 20.sp),
121 padding:
const EdgeInsets.only(bottom: 10),
122 child: CustomOptionButton(
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
override Widget build(BuildContext context)
final List< String > yesNoOptions
void _onSelectThirdParty(String option)
void _onSelectSustainableCommuting(String option)
String useSustainableCommuting
final TextEditingController _thirdPartyDistanceController
class ThirdPartyDeliveryView extends StatefulWidget useThirdParty
final TextEditingController _ownVehiclesDistanceController