Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
average_portion_size.dart
Go to the documentation of this file.
1import 'package:connect/core/constants/app_values.dart';
2import 'package:connect/core/ui/widgets/custom_card.dart';
3import 'package:connect/features/co2_emmissions/screens/energy/energy_screen.dart';
4import 'package:connect/features/co2_emmissions/screens/widgets/step_brogress_bar.dart';
5import 'package:flutter/material.dart';
6import 'package:flutter_screenutil/flutter_screenutil.dart';
7
8class AveragePortionSize extends StatelessWidget {
9 const AveragePortionSize({super.key});
10
11 @override
12 Widget build(BuildContext context) {
13 return SingleChildScrollView(
14 padding: EdgeInsets.all(15.sp),
15 child: Column(
16 crossAxisAlignment: CrossAxisAlignment.start,
17 children: [
18 Container(
19 width: double.infinity,
20 padding: EdgeInsets.all(15.sp),
21 decoration: BoxDecoration(
22 color: Colors.green.withOpacity(0.11),
23 borderRadius: BorderRadius.circular(10)),
24 child: Center(
25 child: Text(
26 'Food',
27 style: Theme.of(context)
28 .textTheme
29 .bodySmall
30 ?.copyWith(color: Colors.green),
31 ),
32 ),
33 ),
34 SizedBox(height: 10.sp),
36 padding: EdgeInsets.all(15.sp),
37 child: Column(
38 crossAxisAlignment: CrossAxisAlignment.start,
39 children: [
40 SimpleProgressBar(
41 totalSteps: 5,
42 currentStep: 2,
43 ),
44 SizedBox(height: 10.sp),
45 Text(
46 'What is the average portion size per meal (in kg)?',
47 style: Theme.of(context).textTheme.displaySmall?.copyWith(
48 fontSize: 12.sp,
49 ),
50 ),
51 SizedBox(height: 5.sp),
52 Text(
53 '(Estimate if exact data is unavailable)',
54 style: Theme.of(context).textTheme.displaySmall?.copyWith(
55 color: Theme.of(context).hintColor,
56 fontSize: 10.sp,
57 ),
58 ),
59 SizedBox(height: 10.sp),
61 label: 'Protein (meat, chicken, fish):',
63 ),
65 label: 'Vegetables:',
67 ),
69 label: 'Carbohydrates (rice, bread, pasta):',
71 ),
72 SizedBox(height: 10.sp),
73 Text(
74 'Provide the approximate monthly usage (in kg) of the following food categories:',
75 style: Theme.of(context).textTheme.displaySmall?.copyWith(
76 fontSize: 12.sp,
77 ),
78 ),
79 SizedBox(height: 20.sp),
81 label: 'Red meat (e.g., beef, lamb):',
83 ),
85 label: 'Poultry (e.g., chicken, turkey):',
87 ),
89 label: 'Carbohydrates (rice, bread, pasta):',
91 ),
92 SizedBox(height: 10.sp),
93 Text(
94 'Provide the approximate monthly usage (in kg) of the following food categories:',
95 style: Theme.of(context).textTheme.displaySmall?.copyWith(
96 fontSize: 12.sp,
97 ),
98 ),
99 SizedBox(height: 20.sp),
101 label: 'Red meat (e.g., beef, lamb): ',
103 ),
105 label: 'Poultry (e.g., chicken, turkey): ',
107 ),
109 label: 'Fish/seafood: ',
111 ),
113 label: 'Dairy (e.g., milk, cheese, yogurt): ',
115 ),
117 label: 'Vegetables: ',
119 ),
121 label: 'Fruits: ',
123 ),
124 ],
125 ),
126 ),
127 ],
128 ),
129 );
130 }
131}
static const String measureentUnit
const CustomInputField({ super.key, required this.label, required this.hint, })
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
final Widget child
override Widget build(BuildContext context)
final String label
const AveragePortionSize({super.key})
final String hint