Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
total_waste_view.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3import '../../widgets/step_brogress_bar.dart';
4import '/core/ui/widgets/custom_card.dart';
5import '/core/ui/widgets/custom_text_form_field.dart';
6
7class TotalWasteView extends StatelessWidget {
8 const TotalWasteView({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.orange.withOpacity(0.11),
22 borderRadius: BorderRadius.circular(10),
23 ),
24 child: Center(
25 child: Text(
26 'Waste',
27 style: Theme.of(context)
28 .textTheme
29 .bodySmall
30 ?.copyWith(color: Colors.orange),
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: 9,
42 currentStep: 1,
43 ),
44 SizedBox(height: 10.sp),
45 Text(
46 'How Much Total Waste (Food And Non-Food) Do You Generate',
47 style: Theme.of(context).textTheme.displaySmall?.copyWith(
48 fontSize: 12.sp,
49 ),
50 ),
51 SizedBox(height: 10.sp),
52 Text(
53 'Monthly (In Kg)?',
54 style: Theme.of(context).textTheme.displaySmall?.copyWith(
55 fontSize: 12.sp,
56 ),
57 ),
58 SizedBox(height: 10.sp),
60 hintText: 'input',
61 fillColor: Theme.of(context).highlightColor.withOpacity(0.11),
62 suffix: Padding(
63 padding: EdgeInsets.only(top: 13.sp, right: 10.sp),
64 child: Text(
65 'kg/Month',
66 style: Theme.of(context).textTheme.bodySmall?.copyWith(
67 color: Theme.of(context).colorScheme.primary,
68 height: 0.0,
69 ),
70 ),
71 ),
72 controller: TextEditingController(),
73 ),
74 ],
75 ),
76 ),
77 ],
78 ),
79 );
80 }
81}
const TotalWasteView({super.key})
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
final TextEditingController controller
final Widget child
override Widget build(BuildContext context)
const CustomTextFormField({ super.key, required this.hintText, required this.controller, this.suffix, this.focusNode, this.validator, this.isObscure=false, this.inputType, this.maxLines=1, this.padding, this.fillColor, this.labelText, this.inputFormatters, this.onChanged, })