Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Coil-multiplatform and compose-multiplatform resources #217

Closed
wants to merge 6 commits into from

Conversation

findjigar
Copy link
Contributor

  • Use coil-multiplatform for remote image fetching
  • Use compose-multiplatform resources for local image loading
  • Clean up old image related code
  • Remove unused resources

@Composable
internal fun BottomNavigationView(viewModel: ApplicationViewModel, modifier: Modifier = Modifier) {
setSingletonImageLoaderFactory { context ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to move this up to MainComposeView as the highest level view?

imageUrl = imageUrl,
DcAsyncImage(
logTag = LOG_TAG,
model = ImageRequest.Builder(LocalPlatformContext.current)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need a builder when the others just give the url?

@findjigar
Copy link
Contributor Author

Closing in favor of #219

@findjigar findjigar closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants