Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
progress_step.dart
Go to the documentation of this file.
1import 'package:fluentui_system_icons/fluentui_system_icons.dart';
2import 'package:flutter/material.dart';
3import 'package:flutter_screenutil/flutter_screenutil.dart';
4
5import '../../../../../../../core/ui/theme/color_palette.dart';
6
7class ProgressStep extends StatelessWidget {
8 final String label;
9 final bool isActive;
10 final bool isCompleted;
11 final int step;
12
14 super.key,
15 required this.label,
16 required this.isActive,
17 required this.isCompleted,
18 required this.step,
19 });
20
21 @override
22 Widget build(BuildContext context) {
23 return Column(
24 children: [
25 Container(
26 width: 32.sp,
27 height: 32.sp,
28 decoration: BoxDecoration(
31 : isActive
34 shape: BoxShape.circle,
35 border: Border.all(
38 : isActive
41 width: 2,
42 ),
43 ),
44 child: Center(
46 ? Icon(FluentIcons.checkmark_12_regular, color: ColorPalette.white, size: 18.sp)
47 : Text(
48 '$step',
49 style: Theme.of(context).textTheme.bodyMedium!.copyWith(
51 fontWeight: FontWeight.bold,
52 ),
53 ),
54 ),
55 ),
56 SizedBox(height: 8.sp),
57 Text(
58 label,
59 style: TextStyle(
61 fontSize: 12.sp,
62 fontWeight: isActive ? FontWeight.w600 : FontWeight.normal,
63 ),
64 ),
65 ],
66 );
67 }
68}
static const lightGreen
static const lightGrey
static const white
static const grey
final bool isActive
const ProgressStep({ super.key, required this.label, required this.isActive, required this.isCompleted, required this.step, })
final Widget child
override Widget build(BuildContext context)
class Partner String
final String label
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,),),),],)