mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-07-16 22:33:24 +00:00
CW-608-Fetch-And-Save-Icons-Of-ERC20-And-SPL-Tokens-When-Adding-Them (#1365)
* feat: Fetch and save icons of SPL tokens when adding them * feat: Implement fetch and save icons for ERC20 tokens when adding them * fix: Add moralisApiKey to evm secrets * Add check to ensure decimals cannot be zero * - Fallback to adding erc20 token from web3dart - Wrap fetching spl token icon in a try/catch block --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
This commit is contained in:
parent
d4b317b3a0
commit
2877cc160c
41 changed files with 182 additions and 69 deletions
|
@ -18,7 +18,7 @@ class CakeImageWidget extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
try {
|
||||
if (imageUrl == null) return _displayOnError!;
|
||||
if (imageUrl == null || imageUrl!.isEmpty) return _displayOnError!;
|
||||
|
||||
if (imageUrl!.contains('assets/images')) {
|
||||
return Image.asset(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue