Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
location_header_widget.dart
Go to the documentation of this file.
1import 'package:easy_localization/easy_localization.dart';
2import 'package:flutter/material.dart';
3import 'package:flutter_screenutil/flutter_screenutil.dart';
4import 'package:fluentui_system_icons/fluentui_system_icons.dart';
5
6import '../../../../../../core/ui/theme/color_palette.dart';
7
8class LocationHeaderWidget extends StatelessWidget {
9 const LocationHeaderWidget({super.key});
10
11 @override
12 Widget build(BuildContext context) {
13 return Row(
14 children: [
15 Container(
16 padding: EdgeInsets.all(8.w),
17 decoration: BoxDecoration(
18 color: ColorPalette.lightGreen.withValues(alpha: 0.1),
19 borderRadius: BorderRadius.circular(12.r),
20 ),
21 child: Icon(
22 FluentIcons.vehicle_truck_16_filled,
24 size: 24.sp,
25 ),
26 ),
27 SizedBox(width: 12.w),
28 Expanded(
30 crossAxisAlignment: CrossAxisAlignment.start,
31 children: [
32 Text(
33 'scheduling.start_location'.tr(),
34 style: TextStyle(
35 fontSize: 18.sp,
36 fontWeight: FontWeight.bold,
38 ),
39 ),
40 Text(
41 'scheduling.start_location_subtitle'.tr(),
42 style: TextStyle(
43 fontSize: 12.sp,
45 fontWeight: FontWeight.w500,
46 ),
47 ),
48 ],
49 ),
50 ),
51 ],
52 );
53 }
54}
static const darkGrey
static const lightGreen
static const black
final Widget child
const LocationHeaderWidget({super.key})
override Widget build(BuildContext context)
final EdgeInsets padding
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,),),),],)