1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
4import '../../../../../core/ui/widgets/custom_card.dart';
5import '../../operational_details_screen/views/operational_hours_view.dart';
6import '../../widgets/step_brogress_bar.dart';
12 State<DeliveryDistanceView>
createState() => _DeliveryDistanceViewState();
15class _DeliveryDistanceViewState
extends State<DeliveryDistanceView> {
30 Widget
build(BuildContext context) {
31 return SingleChildScrollView(
34 crossAxisAlignment: CrossAxisAlignment.start,
37 width:
double.infinity,
39 decoration: BoxDecoration(
40 color: Colors.blue.withOpacity(0.11),
41 borderRadius: BorderRadius.circular(10),
46 style: Theme.of(context)
49 ?.copyWith(
color: Colors.blue),
53 SizedBox(height: 10.sp),
57 crossAxisAlignment: CrossAxisAlignment.start,
63 SizedBox(height: 10.sp),
65 'What Is The Average Distance For Each Delivery?',
66 style: Theme.of(context).textTheme.displaySmall?.copyWith(
72 style: Theme.of(context).textTheme.displaySmall?.copyWith(
73 color: Theme.of(context).hintColor,
77 SizedBox(height: 20.sp),
78 ...
options.map((option) => Padding(
79 padding:
const EdgeInsets.only(bottom: 10),
80 child: CustomOptionButton(
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
void _onSelect(String option)
class EnergySavingsMeasure extends StatefulWidget options
List< String > selectedOption
override Widget build(BuildContext context)