1import 'package:connect/core/ui/widgets/custom_card.dart';
2import 'package:connect/features/co2_emmissions/screens/widgets/step_brogress_bar.dart';
3import 'package:flutter/material.dart';
4import 'package:flutter_screenutil/flutter_screenutil.dart';
5import 'package:hugeicons/hugeicons.dart';
11 State<OpertaionalHoursView>
createState() => _OpertaionalHoursViewState();
14class _OpertaionalHoursViewState
extends State<OpertaionalHoursView> {
16 'Morning (6:00 AM - 12:00 PM)',
17 'Afternoon (12:00 PM - 6:00 PM)',
18 'Evening (6:00 PM - 12:00 AM)',
19 'Late Night (12:00 AM - 6:00 AM)',
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)),
51 'Operational Details',
52 style: Theme.of(context)
55 ?.copyWith(
color: Colors.blue),
59 SizedBox(height: 10.sp),
63 crossAxisAlignment: CrossAxisAlignment.start,
69 SizedBox(height: 10.sp),
71 'What are your operating hours?',
72 style: Theme.of(context).textTheme.displaySmall?.copyWith(
76 SizedBox(height: 5.sp),
78 '(Select all that apply):',
79 style: Theme.of(context).textTheme.displaySmall?.copyWith(
80 color: Theme.of(context).hintColor,
84 SizedBox(height: 20.sp),
86 physics: NeverScrollableScrollPhysics(),
89 separatorBuilder: (context, index) => SizedBox(height: 10.sp),
90 itemBuilder: (BuildContext context,
int index) {
91 return CustomOptionButton(
122 Widget
build(BuildContext context) {
123 return ElevatedButton(
124 style: ElevatedButton.styleFrom(
126 ? Theme.of(context).colorScheme.primary.withOpacity(0.11)
127 : Theme.of(context).colorScheme.surface,
128 padding: EdgeInsets.all(15.sp),
136 decoration: BoxDecoration(
138 ? Theme.of(context).colorScheme.primary.withOpacity(0.11)
139 : Theme.of(context).colorScheme.surface,
140 shape: BoxShape.circle,
144 ? Theme.of(context).colorScheme.primary
145 : Theme.of(context).hintColor,
149 HugeIcons.strokeRoundedCheckmarkBadge04,
152 ? Theme.of(context).colorScheme.primary
153 : Theme.of(context).colorScheme.surface,
156 SizedBox(width: 10.sp),
160 style: Theme.of(context).textTheme.bodySmall?.copyWith(
162 ? Theme.of(context).colorScheme.primary
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
final Color backgroundColor
class EnergySavingsMeasure extends StatefulWidget options
List< String > selectedOption
void onSelect(String option)
override Widget build(BuildContext context)