Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
progress_step.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3import 'package:hugeicons/hugeicons.dart';
4
5class ProgressStep extends StatelessWidget {
6 final String label;
7 final bool isActive;
8 final bool isCompleted;
9 final int step;
10
12 super.key,
13 required this.label,
14 required this.isActive,
15 required this.isCompleted,
16 required this.step,
17 });
18
19 @override
20 Widget build(BuildContext context) {
21 return Column(
22 children: [
23 Container(
24 width: 32.sp,
25 height: 32.sp,
26 decoration: BoxDecoration(
28 ? Theme.of(context).colorScheme.primary
29 : isActive
30 ? Theme.of(context).colorScheme.primary.withOpacity(0.11)
31 : Colors.transparent,
32 shape: BoxShape.circle,
33 border: Border.all(
35 ? Theme.of(context).colorScheme.primary
36 : isActive
37 ? Theme.of(context).colorScheme.primary
38 : Theme.of(context).hintColor.withOpacity(0.5),
39 width: 1,
40 ),
41 ),
42 child: Center(
44 ? Icon(HugeIcons.strokeRoundedCheckmarkBadge01,
45 color: Theme.of(context).colorScheme.onPrimary, size: 18.sp)
46 : Text(
47 '$step',
48 style: Theme.of(context).textTheme.bodySmall!.copyWith(
50 ? Theme.of(context).colorScheme.primary
51 : Theme.of(context).hintColor,
52 ),
53 ),
54 ),
55 ),
56 SizedBox(height: 8.sp),
57 Text(
58 label,
59 style: Theme.of(context).textTheme.bodySmall?.copyWith(
61 ? Theme.of(context).colorScheme.primary
62 : Theme.of(context).hintColor.withOpacity(0.5),
63 fontSize: 10.5.sp,
64 ),
65 ),
66 ],
67 );
68 }
69}
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)
final String label
final bool isCompleted
final String label