Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
collection_priority_badge.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3import '../../../common/enums/collection_priority.dart';
4
7
9 super.key,
10 required this.priority,
11 });
12
13 @override
14 Widget build(BuildContext context) {
15 return Container(
16 padding: EdgeInsets.symmetric(
17 horizontal: 12.sp,
18 vertical: 4.sp,
19 ),
20 decoration: BoxDecoration(
21 color: priority.color.withValues(alpha:0.1),
22 borderRadius: BorderRadius.circular(12),
23 ),
24 child: Row(
25 mainAxisSize: MainAxisSize.min,
26 children: [
27 Icon(
28 Icons.flag,
29 size: 14,
30 color: priority.color,
31 ),
32 SizedBox(width: 4.sp),
33 Text(
34 priority.name,
35 style: Theme.of(context).textTheme.titleSmall!.copyWith(
36 fontSize: 10.sp,
37 color: priority.color,
38 fontWeight: FontWeight.w500,
39 ),
40 ),
41 ],
42 ),
43 );
44 }
45}
final Widget child
final CollectionPriority priority
override Widget build(BuildContext context)
const CollectionPriorityBadge({ super.key, required this.priority, })
final EdgeInsets padding
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
style SizedBox(height:2.h)