CakeWallet/lib/view_model
David Adegoke b5ba9385e8
Handle Network Connection Errors (#2213)
* fix(moralis-nft-errors): guard against concurrent NFT fetches and adjusts the message being presented to the user.

Previously multiple calls to get NFTs for the currently opened wallet could overlap and queue the error bottom sheet multiple times.

This change:
- Registers the NFTViewModel as a lazySingleton so its isLoading flag persists.
- Adds an early return in the call to fetch the wallet NFTs when isLoading is already true.
- Cleans up the error message being displayed to the user when there is an error.

* feat(moralis-nft-error): localize error message in NFTViewModel

* feat(nft/wc-bottom-sheet): Revamped the flow, service, theme, and UI for smoother UX

Revamps bottom‑sheet handling end‑to‑end to deliver a much more smoother experience.

This change:
- Refactors the BottomSheetService queueing logic to prevent races and ensure strict sequencing
- Update theme extensions and styling for the bottom‑sheet components
- Adds the option to either auto dismiss or allow user manually dismiss the bottomsheet

* fix: Context clash when entering the wallets on airplane mode. The flushbar clashes with the bottomSheet and results in it blocking entry to the selected wallet.

This change:
- Moves the logic for fetching nft to the listing  page, no need fetching if the user does not route to the page,
- Routes to balance page when entering from wallet list page
- Adds a fade transition when entering the dashboard
- Reverts nftViewModel registeration to be a factory

* fix: Revert animation for now, prior to when the UX overhaul for the app is done

* fix: Remove duplicate registration
2025-04-25 01:12:56 +03:00
..
buy Remove old cake wallet logo (#2161) 2025-04-07 18:14:35 +02:00
cake_pay Confirmation checkboxes (#1877) 2024-12-14 02:21:04 +02:00
contact_list Add decred (#1938) 2025-03-21 04:18:47 +02:00
dashboard Handle Network Connection Errors (#2213) 2025-04-25 01:12:56 +03:00
dev CW-1000 Background sync improvements (#2142) 2025-04-24 19:06:43 +02:00
exchange Disable SimpleSwap from the Swap flow (#2148) 2025-04-01 20:04:43 +02:00
hardware_wallet V4.26.0 rc (#2198) 2025-04-15 02:50:07 +02:00
monero_account_list Remove haven (#2085) 2025-03-21 04:52:05 +02:00
nano_account_list CW-438 add nano (#1015) 2023-10-05 04:09:07 +03:00
node_list v4.24.0 (#2102) 2025-03-25 03:49:54 +02:00
restore Add decred (#1938) 2025-03-21 04:18:47 +02:00
send CW-1000 Background sync improvements (#2142) 2025-04-24 19:06:43 +02:00
settings Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
unspent_coins fix: incorrect balance in send card (#2158) 2025-04-04 12:56:07 +02:00
wallet_address_list Remove haven (#2085) 2025-03-21 04:52:05 +02:00
wallet_list V4.26.0 rc (#2198) 2025-04-15 02:50:07 +02:00
advanced_privacy_settings_view_model.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
animated_ur_model.dart WIP: CW-665 Implement AirGapped Monero Transactions (#1535) 2024-11-09 20:59:47 +02:00
anon_invoice_page_view_model.dart V4.26.0 rc (#2198) 2025-04-15 02:50:07 +02:00
anonpay_details_view_model.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
auth_state.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
auth_view_model.dart bio auth on mac + package updates for 3.19.3/5 (#1398) 2024-05-06 22:55:05 +03:00
backup_view_model.dart CW-875 BackupServiceV3 (#2064) 2025-03-22 03:16:54 +02:00
edit_backup_password_view_model.dart CW-599-Extract-Secure-Storage (#1353) 2024-05-08 23:23:27 +03:00
link_view_model.dart Peg in and peg out flow (#1745) 2024-10-15 00:28:38 +03:00
new_wallet_type_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
order_details_view_model.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
rescan_view_model.dart litecoin mweb support (#1455) 2024-09-28 05:22:25 +03:00
restore_from_backup_view_model.dart fix: more verbose errors in backups (#2196) 2025-04-19 01:13:07 +02:00
seed_settings_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
set_up_2fa_viewmodel.dart CW-566-Cake2FA-Bypass-Bug (#1275) 2024-01-27 05:08:53 +02:00
setup_pin_code_view_model.dart Part 1 2020-09-21 14:50:26 +03:00
support_view_model.dart feat: Add fiat api and last used wallet type to support chat (#2078) 2025-03-11 15:27:50 +02:00
trade_details_view_model.dart CW-961-Integrate-xoswap (#2060) 2025-03-14 03:02:39 +02:00
transaction_details_view_model.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
wallet_creation_vm.dart Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
wallet_groups_display_view_model.dart CW-723-Add-Monero-support-to-the-Shared-Seed-feature-in-Cake (#2131) 2025-04-10 03:31:26 +02:00
wallet_hardware_restore_view_model.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
wallet_keys_view_model.dart CW-723-Add-Monero-support-to-the-Shared-Seed-feature-in-Cake (#2131) 2025-04-10 03:31:26 +02:00
wallet_new_vm.dart Remove words length from pre-seed warning (#2208) 2025-04-16 03:37:34 +02:00
wallet_restore_choose_derivation_view_model.dart CW-438 add nano (#1015) 2023-10-05 04:09:07 +03:00
wallet_restore_view_model.dart Remove haven (#2085) 2025-03-21 04:52:05 +02:00
wallet_seed_view_model.dart Fix electrum unspent coins error (#1912) 2024-12-29 23:48:53 +02:00
wallet_unlock_loadable_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
wallet_unlock_verifiable_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
wallet_unlock_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00