https://kotlinlang.org logo
Title
j

John O'Reilly

11/03/2021, 9:06 PM
Does anyone know whether you can use
Image
composable when using new
Glance
API to create app wdiget?
Doing following for example and getting an exception
Image(painterResource(R.drawable.ic_bike), contentDescription="Free bikes")
java.lang.IllegalStateException: CompositionLocal LocalContext not present
nvm, my bad, was importing wrong
Image
class
😄 1
c

Colton Idle

11/04/2021, 12:03 AM
Looking forward to some people in space widget samples 😄
👍 2
j

John O'Reilly

11/04/2021, 8:56 AM
I'm doing one at the moment for the BikeShare sample as that has info that's a tiny bit more useful in a widget like this. 😀
1