Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/app_config/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ final Uri discordInviteUrl = Uri.parse('https://komodoplatform.com/discord');
/// Const to define if Bitrefill integration is enabled in the app.
const bool isBitrefillIntegrationEnabled = false;

/// Controls whether asset icons are precached when the app starts.
const bool isIconPrecachingEnabled = false;

/// Const to define whether to show trading warning dialogs and notices.
/// This can be used to control the display of trading-related warnings
/// throughout the application.
Expand Down
6 changes: 4 additions & 2 deletions lib/bloc/app_bloc_root.dart
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,10 @@ class _MyAppViewState extends State<_MyAppView> {
void didChangeDependencies() {
super.didChangeDependencies();

final sdk = RepositoryProvider.of<KomodoDefiSdk>(context);
_precacheCoinIcons(sdk).ignore();
if (isIconPrecachingEnabled) {
final sdk = RepositoryProvider.of<KomodoDefiSdk>(context);
_precacheCoinIcons(sdk).ignore();
}
}

/// Hides the native app launch loader. Currently only implemented for web.
Expand Down
Loading