Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
total_ingredient_weight.dart
Go to the documentation of this file.
1import 'package:connect/core/ui/widgets/custom_card.dart';
2import 'package:connect/features/co2_emmissions/screens/energy/energy_screen.dart';
3import 'package:connect/features/co2_emmissions/screens/widgets/step_brogress_bar.dart';
4import 'package:flutter/material.dart';
5import 'package:flutter_screenutil/flutter_screenutil.dart';
6
7class TotalIngredientWeight extends StatelessWidget {
8 const TotalIngredientWeight({super.key});
9
10 @override
11 Widget build(BuildContext context) {
12 return SingleChildScrollView(
13 padding: EdgeInsets.all(15.sp),
14 child: Column(
15 crossAxisAlignment: CrossAxisAlignment.start,
16 children: [
17 Container(
18 width: double.infinity,
19 padding: EdgeInsets.all(15.sp),
20 decoration: BoxDecoration(
21 color: Colors.green.withOpacity(0.11),
22 borderRadius: BorderRadius.circular(10)),
23 child: Center(
24 child: Text(
25 'Food',
26 style: Theme.of(context)
27 .textTheme
28 .bodySmall
29 ?.copyWith(color: Colors.green),
30 ),
31 ),
32 ),
33 SizedBox(height: 10.sp),
35 padding: EdgeInsets.all(15.sp),
36 child: Column(
37 crossAxisAlignment: CrossAxisAlignment.start,
38 children: [
39 SimpleProgressBar(
40 totalSteps: 5,
41 currentStep: 1,
42 ),
43 SizedBox(height: 10.sp),
44 Text(
45 'What is the total weight of ingredients purchased monthly (in kg)?',
46 style: Theme.of(context).textTheme.displaySmall?.copyWith(
47 fontSize: 12.sp,
48 ),
49 ),
50 SizedBox(height: 10.sp),
52 label: 'Total',
53 hint: 'kg/Month',
54 ),
56 label: 'Total',
57 hint: 'Meals/Day',
58 ),
59 ],
60 ),
61 ),
62 ],
63 ),
64 );
65 }
66}
const CustomInputField({ super.key, required this.label, required this.hint, })
const TotalIngredientWeight({super.key})
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
final Widget child
override Widget build(BuildContext context)
final String label
final String hint