12 Widget
build(BuildContext context) {
13 return CustomScaffold(
14 title:
"wallet.title".tr(),
16 body: CustomScrollView(
22 crossAxisAlignment: CrossAxisAlignment.start,
26 width:
double.infinity,
27 decoration: BoxDecoration(
29 begin: Alignment.topLeft,
30 end: Alignment.bottomRight,
37 borderRadius: BorderRadius.circular(24),
42 offset:
const Offset(0, 10),
55 decoration: BoxDecoration(
56 color: Colors.white.withValues(alpha:0.1),
57 shape: BoxShape.circle,
65 crossAxisAlignment: CrossAxisAlignment.center,
68 'wallet.total_balance'.tr(),
71 fontWeight: FontWeight.w600,
77 crossAxisAlignment: CrossAxisAlignment.end,
78 mainAxisAlignment: MainAxisAlignment.center,
85 fontWeight: FontWeight.bold,
90 padding: EdgeInsets.only(bottom: 8.sp),
92 'wallet.currency'.tr(),
94 color: Colors.white70,
103 padding: EdgeInsets.all(10.sp),
104 decoration: BoxDecoration(
105 color: Colors.black.withValues(alpha:0.1),
106 borderRadius: BorderRadius.circular(16),
109 mainAxisAlignment: MainAxisAlignment.spaceAround,
112 icon: Icons.arrow_upward,
114 label:
'wallet.income'.tr(),
119 child:
const VerticalDivider(
120 color: Colors.white24,
125 icon: Icons.arrow_downward,
127 label:
'wallet.expense'.tr(),
142 mainAxisAlignment: MainAxisAlignment.spaceBetween,
145 'wallet.recent_transactions'.tr(),
148 fontWeight: FontWeight.bold,
160 width:
double.infinity,
161 padding: EdgeInsets.all(32.sp),
162 decoration: BoxDecoration(
164 borderRadius: BorderRadius.circular(24),
167 color: Colors.black.withValues(alpha:0.05),
169 offset:
const Offset(0, 10),
176 padding: EdgeInsets.all(16.sp),
177 decoration: BoxDecoration(
178 color: Colors.grey[100],
179 shape: BoxShape.circle,
184 color: Colors.grey[400],
189 'wallet.no_transactions'.tr(),
192 color: Colors.grey[600],
193 fontWeight: FontWeight.w500,
198 'wallet.transactions_will_appear'.tr(),
201 color: Colors.grey[400],
const _TransactionSummaryItem({ required this.icon, required this.amount, required this.label, required this.isIncome, })
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,),),),],)