Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
collection_request_details_header.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3
4import '../../../../../core/ui/theme/color_palette.dart';
5import '../collection_request_information/widgets/collection_progress_tracker/collection_progress_tracker.dart';
6
7class CollectionRequestDetailsHeader extends StatelessWidget {
8 final String name;
9 final String address;
10 final int stepNumber;
11 final EdgeInsetsGeometry? margin;
13 super.key,
14 required this.name,
15 required this.address,
16 required this.stepNumber,
17 this.margin,
18 });
19
20 @override
21 Widget build(BuildContext context) {
22 return Container(
23 width: double.infinity,
25 padding: EdgeInsets.all(20.sp),
26 decoration: BoxDecoration(
28 borderRadius: BorderRadius.circular(20),
29 boxShadow: [
30 BoxShadow(
31 color: ColorPalette.black.withValues(alpha:0.05),
32 blurRadius: 10,
33 offset: const Offset(0, 4),
34 ),
35 ],
36 ),
38 crossAxisAlignment: CrossAxisAlignment.start,
39 children: [
40 Row(
41 mainAxisAlignment: MainAxisAlignment.spaceBetween,
42 children: [
43 Expanded(
45 crossAxisAlignment: CrossAxisAlignment.start,
46 children: [
47 Text(
48 name,
49 style: Theme.of(context).textTheme.titleLarge?.copyWith(
50 fontWeight: FontWeight.bold
51 ),
52 ),
53 SizedBox(height: 4.sp),
54 Text(
55 address,
56 style: Theme.of(context).textTheme.bodySmall?.copyWith(
58 ),
59 ),
60 ],
61 ),
62 ),
63 // SizedBox(width: 10.sp),
64 // Container(
65 // padding: EdgeInsets.symmetric(
66 // horizontal: 16.sp,
67 // vertical: 8.sp,
68 // ),
69 // decoration: BoxDecoration(
70 // color: Colors.green[50],
71 // borderRadius: BorderRadius.circular(20),
72 // border: Border.all(color: ColorPalette.lightGreen.withValues(alpha:0.3)),
73 // ),
74 // child: Row(
75 // mainAxisSize: MainAxisSize.min,
76 // children: [
77 // Icon(Icons.check_circle, color: ColorPalette.lightGreen, size: 16.sp),
78 // SizedBox(width: 6.sp),
79 // Text(
80 // 'Arrived',
81 // style: Theme.of(context).textTheme.bodySmall?.copyWith(
82 // color: ColorPalette.lightGreen,
83 // fontWeight: FontWeight.w600,
84 // fontSize: 12.sp,
85 // ),
86 // ),
87 // ],
88 // ),
89 // ),
90 ],
91 ),
92 SizedBox(height: 20.sp),
94 ],
95 ),
96 );
97 }
98}
static const black
static const white
static const grey
final Widget child
override Widget build(BuildContext context)
const CollectionRequestDetailsHeader({ super.key, required this.name, required this.address, required this.stepNumber, this.margin, })
final String address
final EdgeInsets padding
const CollectionProgressTracker({super.key, required this.stepNumber})
class Partner String
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
style SizedBox(height:2.h)
style Column(crossAxisAlignment:CrossAxisAlignment.end, children:[Container(padding:EdgeInsets.symmetric(horizontal:8.w, vertical:4.h), decoration:BoxDecoration(color:ColorPalette.tiffanyBlue.withValues(alpha:0.1), borderRadius:BorderRadius.circular(12),), child:Text(collection.type ?? '', style:Theme.of(context).textTheme.bodySmall?.copyWith(color:ColorPalette.tiffanyBlue, fontWeight:FontWeight.bold,),),),],)