Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
usage_over_6_months_view.dart
Go to the documentation of this file.
1import 'package:flutter/material.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_screenutil/flutter_screenutil.dart';
6
7class UsageOver6Months extends StatelessWidget {
8 const UsageOver6Months({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.red.withOpacity(0.11),
22 borderRadius: BorderRadius.circular(10)),
23 child: Center(
24 child: Text(
25 'Energy',
26 style: Theme.of(context)
27 .textTheme
28 .bodySmall
29 ?.copyWith(color: Colors.red),
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: 6,
41 currentStep: 3,
42 ),
43 SizedBox(height: 10.sp),
44 Text(
45 'What is your average monthly emonthlylectricity consumption over the past 6 months (in kWh)?',
46 style: Theme.of(context).textTheme.displaySmall?.copyWith(
47 fontSize: 12.sp,
48 ),
49 ),
50 SizedBox(height: 5.sp),
51 Text(
52 '(If unknown, please provide the monthly usage if available):',
53 style: Theme.of(context).textTheme.displaySmall?.copyWith(
54 color: Theme.of(context).hintColor,
55 fontSize: 10.sp,
56 ),
57 ),
58 SizedBox(height: 10.sp),
60 label: 'Diesel',
61 hint: 'Liters/Month ',
62 ),
64 label: 'LPG',
65 hint: 'kg/Month',
66 ),
67 ],
68 ),
69 ),
70 ],
71 ),
72 );
73 }
74}
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 UsageOver6Months({super.key})
final String hint