40 Widget
build(BuildContext context) {
41 return SingleChildScrollView(
44 crossAxisAlignment: CrossAxisAlignment.start,
47 width:
double.infinity,
49 decoration: BoxDecoration(
50 color: Colors.red.withOpacity(0.11),
51 borderRadius: BorderRadius.circular(10)),
55 style: Theme.of(context)
58 ?.copyWith(
color: Colors.red),
62 SizedBox(height: 10.sp),
66 crossAxisAlignment: CrossAxisAlignment.start,
72 SizedBox(height: 10.sp),
74 'Do you actively track energy consumption trends (e.g., peak usage times)?',
75 style: Theme.of(context).textTheme.displaySmall?.copyWith(
79 SizedBox(height: 10.sp),
81 physics: NeverScrollableScrollPhysics(),
84 separatorBuilder: (context, index) {
85 if (index == 0) return SizedBox();
86 return SizedBox(height: 10.sp);
88 itemBuilder: (BuildContext context,
int index) {
91 padding: EdgeInsets.all(10.sp),
92 child: CustomTextFormField(
94 fillColor: Theme.of(context)
97 controller: TextEditingController(),
102 final adjustedIndex = index > 1 ? index - 1 : index;
104 return CustomOptionButton(
105 option:
options[adjustedIndex],
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })