1import 'package:connect/features/co2_emmissions/screens/operational_details_screen/views/operational_hours_view.dart';
2import 'package:flutter/material.dart';
3import 'package:connect/core/ui/widgets/custom_card.dart';
4import 'package:connect/features/co2_emmissions/screens/energy/energy_screen.dart';
5import 'package:connect/features/co2_emmissions/screens/widgets/step_brogress_bar.dart';
6import 'package:flutter/material.dart';
7import 'package:flutter_screenutil/flutter_screenutil.dart';
14 _LocalIngredientsPercentageViewState();
17class _LocalIngredientsPercentageViewState
18 extends State<LocalIngredientsPercentageView> {
42 Widget
build(BuildContext context) {
43 return SingleChildScrollView(
46 crossAxisAlignment: CrossAxisAlignment.start,
49 width:
double.infinity,
51 decoration: BoxDecoration(
52 color: Colors.green.withOpacity(0.11),
53 borderRadius: BorderRadius.circular(10)),
57 style: Theme.of(context)
60 ?.copyWith(
color: Colors.green),
64 SizedBox(height: 10.sp),
68 crossAxisAlignment: CrossAxisAlignment.start,
74 SizedBox(height: 10.sp),
76 'What percentage of your ingredients are sourced locally (<100 km)?',
77 style: Theme.of(context).textTheme.displaySmall?.copyWith(
81 SizedBox(height: 10.sp),
82 SizedBox(height: 10.sp),
84 physics: NeverScrollableScrollPhysics(),
87 separatorBuilder: (context, index) => SizedBox(height: 10.sp),
88 itemBuilder: (BuildContext context,
int index) {
89 return CustomOptionButton(
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
class EnergySavingsMeasure extends StatefulWidget options
List< String > selectedOption
void onSelect(String option)
override Widget build(BuildContext context)