23 Widget
build(BuildContext context) {
24 return ElevatedButton(
25 style: ElevatedButton.styleFrom(
27 padding: EdgeInsets.symmetric(horizontal: 10.sp, vertical: 15.sp),
32 backgroundColor: Colors.transparent,
33 isScrollControlled: true,
35 builder: (BuildContext context) {
37 padding: EdgeInsets.all(10.sp),
38 child: TransactionCardDetails(collection: collection),
45 0: FixedColumnWidth(65),
46 1: FixedColumnWidth(10),
47 3: FixedColumnWidth(100),
49 defaultVerticalAlignment: TableCellVerticalAlignment.middle,
54 NumberConversionService.convertAndFormatWeight(
57 style: Theme.of(context).textTheme.displaySmall?.copyWith(
58 color: Theme.of(context).colorScheme.primary,
59 fontWeight: FontWeight.bold,
65 child:
const VerticalDivider(),
68 padding: EdgeInsets.symmetric(horizontal: 10.sp),
70 crossAxisAlignment: CrossAxisAlignment.start,
74 style: Theme.of(context).textTheme.bodySmall?.copyWith(
78 SizedBox(height: 3.sp),
82 : DateFormat(
'MMM d, y')
84 style: Theme.of(context).textTheme.bodySmall?.copyWith(
86 color: Theme.of(context)
96 padding: EdgeInsets.symmetric(horizontal: 5.sp),
98 crossAxisAlignment: CrossAxisAlignment.end,
102 collection.orderLines?.first.productQty?.toDouble() ??
108 SizedBox(height: 10.sp),
111 child: showToBePaidLabel
114 .translate(
'To be paid'),
115 style: Theme.of(context)
119 color: Theme.of(context).hintColor,
124 mainAxisSize: MainAxisSize.min,
128 .translate(
'show more'),
129 style: Theme.of(context)
134 color: Theme.of(context)
139 SizedBox(width: 5.sp),
141 HugeIcons.strokeRoundedArrowRight02,
143 Theme.of(context).colorScheme.onSurface,
171 Widget
build(BuildContext context) {
175 mainAxisAlignment: MainAxisAlignment.end,
176 crossAxisAlignment: CrossAxisAlignment.center,
180 child: LinearProgressIndicator(
184 Theme.of(context).colorScheme.primary.withOpacity(0.11),
185 valueColor: AlwaysStoppedAnimation<Color>(
186 Theme.of(context).colorScheme.primary,
190 SizedBox(width: 7.sp),
192 '${(percentage * 100).toStringAsFixed(0)}%',
193 style: Theme.of(context).textTheme.displaySmall?.copyWith(