Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
collection_info_row.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3import '../../theme/color_palette.dart';
4
5class CollectionInfoRow extends StatelessWidget {
6 final String label;
7 final String value;
8 final IconData icon;
9
11 super.key,
12 required this.label,
13 required this.value,
14 required this.icon,
15 });
16
17 @override
18 Widget build(BuildContext context) {
19 return Row(
20 children: [
21 Container(
22 padding: EdgeInsets.all(8.sp),
23 decoration: BoxDecoration(
25 borderRadius: BorderRadius.circular(8),
26 ),
27 child: Icon(
28 icon,
29 size: 18.sp,
31 ),
32 ),
33 SizedBox(width: 12.sp),
34 Column(
35 crossAxisAlignment: CrossAxisAlignment.start,
36 children: [
37 Text(
38 label,
39 style: Theme.of(context).textTheme.titleSmall!.copyWith(
40 fontSize: 10.sp,
42 fontWeight: FontWeight.w500,
43 ),
44 ),
46 width: MediaQuery.sizeOf(context).width * 0.7,
47 child: Text(
48 value,
49 style: Theme.of(context).textTheme.titleSmall!.copyWith(
50 fontSize: 12.sp,
52 fontWeight: FontWeight.w500,
53 ),
54 ),
55 ),
56 ],
57 ),
58 ],
59 );
60 }
61}
static const darkGrey
static const antiFlashWhite
static const grey
final Widget child
override Widget build(BuildContext context)
const CollectionInfoRow({ super.key, required this.label, required this.value, required this.icon, })
final EdgeInsets padding
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,),),),],)