Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
wallet_card.dart
Go to the documentation of this file.
1import '../../../../../../core/constants/app_values.dart';
2import '../../../../../../core/utils/number_conversion.dart';
3import '/core/constants/assets.dart';
4import 'package:flutter/material.dart';
5import 'package:flutter_screenutil/flutter_screenutil.dart';
6import 'package:flutter_svg/svg.dart';
7import 'package:intl/intl.dart';
8
9class WalletCard extends StatelessWidget {
10 const WalletCard({
11 super.key,
12 required this.totalCollectionsQuantity,
13 });
14
16
17 @override
18 Widget build(BuildContext context) {
19 return Container(
20 padding: EdgeInsets.only(
21 left: 15.sp,
22 right: 15.sp,
23 top: 15.sp,
24 bottom: 15.sp,
25 ),
26 decoration: BoxDecoration(
27 gradient: LinearGradient(
28 begin: Alignment.topLeft,
29 end: Alignment.bottomRight,
30 colors: [
31 Theme.of(context).colorScheme.primary,
32 Theme.of(context).colorScheme.secondary,
33 ],
34 ),
35 borderRadius: BorderRadius.circular(10),
36 ),
37 child: Column(
38 children: [
39 Row(
40 mainAxisAlignment: MainAxisAlignment.spaceBetween,
41 children: [
42 SvgPicture.asset(
43 'assets/svgs/logo_aidra.svg',
44 height: 15.sp,
45 colorFilter: ColorFilter.mode(
46 Theme.of(context).colorScheme.onPrimary,
47 BlendMode.srcATop,
48 ),
49 ),
50 // SvgPicture.asset(
51 // Assets.biodLogo,
52 // colorFilter: ColorFilter.mode(
53 // Theme.of(context).colorScheme.onPrimary,
54 // BlendMode.srcATop,
55 // ),
56 // height: 18.sp,
57 // ),
58 ],
59 ),
60 SizedBox(height: 15.sp),
61 Center(
62 child: Column(
63 crossAxisAlignment: CrossAxisAlignment.end,
64 mainAxisAlignment: MainAxisAlignment.center,
65 children: [
66 Text(
67 '',
68 style: Theme.of(context).textTheme.bodySmall?.copyWith(
69 color: Theme.of(context).colorScheme.onPrimary,
70 fontSize: 8.sp,
71 ),
72 ),
73 SizedBox(height: 5.sp),
74 Text(
77 ),
78 // NumberFormat.compact().format(totalCollectionsQuantity ?? 0),
79 style: Theme.of(context).textTheme.displayLarge?.copyWith(
80 fontSize: 35.sp,
81 color: Theme.of(context).colorScheme.onPrimary,
82 ),
83 ),
84 Text(
85 'Balance to pay',
86 style: Theme.of(context).textTheme.bodySmall?.copyWith(
87 color: Theme.of(context).colorScheme.onPrimary,
88 ),
89 ),
90 ],
91 ),
92 ),
93 SizedBox(height: 23.sp),
94 Align(
95 alignment: Alignment.bottomRight,
96 child: SvgPicture.asset(
98 height: 14.sp,
99 colorFilter: ColorFilter.mode(
100 Theme.of(context).colorScheme.onPrimary,
101 BlendMode.srcATop,
102 ),
103 ),
104 ),
105 ],
106 ),
107 );
108 }
109}
static const String visaLogo
Definition assets.dart:25
static String convertAndFormatWeight(num? kg)
const WalletCard({ super.key, required this.totalCollectionsQuantity, })
final Widget child
override Widget build(BuildContext context)
final num totalCollectionsQuantity