Last active
October 30, 2023 10:35
-
-
Save armcha/995d572f944a62f0e796a0654d4cd14b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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