refactor: token image updates (#3287)
* Improve token image display with mask and background * Enhance token image bg and remove wierd halo effect that was showing, also add token bg to disclaimer and picker * Add token bg to more locations and give another shot at halo * fix: halo around token images * add token background to non-transparent images only * another shot at bg based on transparency * refactor: enhance token image widget shape handling and add filter quality option to cake image widget * fix: another shot * refactor: update token image shape handling for svg, no need to clip * fix: bnb wallet image not displaying on receive token display
David Adegoke committed
Jun 3, 2026 at 16:01 UTC
0b4e52c5f9ab5dd6fd9165b1453775f91d6e560b
2 files changed
+4
-3
lib/new-ui/widgets/coins_page/token_image_widget.dart
+1
-1
@@ -65,7 +65,7 @@ class _TokenImageWidgetState extends State<TokenImageWidget> {
65
}
66
67
Future<_IconShape> _analyzeShape(String url) async {
68
- if (url.toLowerCase().endsWith('.svg')) return _IconShape.clipOnly;
68
+ if (url.toLowerCase().endsWith('.svg')) return _IconShape.alreadyCircular;
69
70
final ImageProvider provider;
71
if (url.startsWith('assets/')) {
lib/new-ui/widgets/receive_page/receive_token_display.dart
+3
-2
@@ -33,8 +33,9 @@ class ReceiveTokenDisplay extends StatelessWidget {
33
child: Row(
34
spacing:4,
35
children: [
36
- CakeImageWidget(imageUrl:
37
- "assets/new-ui/chain_badges/${walletTypeToString(addressListViewModel.wallet.type).toLowerCase()}.svg",
36
+ CakeImageWidget(
37
+ imageUrl:
38
+ "assets/new-ui/chain_badges/${addressListViewModel.wallet.type == WalletType.bsc ? 'bnb' : walletTypeToString(addressListViewModel.wallet.type).toLowerCase()}.svg",
39
width: 16,
40
height: 16,
41
colorFilter: ColorFilter.mode(