You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm implementing a custom component uses your library to get the dominant color from an image and I'm facing with an issue when I use it with the Painteroption.
My code is the following:
@Composable
@NonRestartableComposable
funCustomComponent(
backgroundPainter:Painter
) {
val loader = rememberPainterLoader()
val dominantColorState = rememberDominantColorState(
loader = loader
)
LaunchedEffect(backgroundPainter) {
dominantColorState.updateFrom(backgroundPainter)
}
when (dominantColorState.result) {
isPaletteResult.Error-> {
val error = (dominantColorState.result asPaletteResult.Error).cause
throwIllegalArgumentException(error) // the same result in all the tests
}
isPaletteResult.Loading-> {
CircularProgressIndicator()
Text("Loading...")
}
isPaletteResult.Success-> {
//custom component
}
null-> {}
}
}
This occurred in the desktop target, but also in the android one is the same.
From the stacktrace seems that is not thrown from your library, but if you can help me I really appreciate it, I'm not used to use the painters directly
The text was updated successfully, but these errors were encountered:
Hi, I'm implementing a custom component uses your library to get the dominant color from an image and I'm facing with an issue when I use it with the
Painter
option.My code is the following:
The
exception
stacktrace:This occurred in the
desktop
target, but also in theandroid
one is the same.From the
stacktrace
seems that is not thrown from your library, but if you can help me I really appreciate it, I'm not used to use thepainters
directlyThe text was updated successfully, but these errors were encountered: