Created
January 18, 2022 03:52
-
-
Save husaynhakeem/1045308c54716ca6e8df17c26cdf735b to your computer and use it in GitHub Desktop.
This file contains 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 ActionWidget : GlanceAppWidget() { | |
@Composable | |
override fun Content() { | |
Button( | |
text = "Start an activity", | |
onClick = actionStartActivity<DummyActivity>( | |
parameters = actionParametersOf( | |
actionWidgetKey to "activity" | |
) | |
) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment