Skip to content

Instantly share code, notes, and snippets.

@armcha
Last active October 30, 2023 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armcha/995d572f944a62f0e796a0654d4cd14b to your computer and use it in GitHub Desktop.
Save armcha/995d572f944a62f0e796a0654d4cd14b to your computer and use it in GitHub Desktop.
class EventsWidget : GlanceAppWidget() {
override suspend fun provideGlance(context: Context, id: GlanceId) {
provideContent {
Box(
modifier = GlanceModifier
.fillMaxSize()
.background(Color.White),
contentAlignment = Alignment.Center
) {
Text(
text = "Welcome to App Widget",
style = TextStyle(
color = ColorProvider(Color.Black),
fontSize = 20.sp
)
)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment