Skip to content

Commit

Permalink
Nit : Fix error in comment
Browse files Browse the repository at this point in the history
The LocalSize.current returns the size of the widget, not the max size of the widget.
  • Loading branch information
secondsun authored Aug 17, 2023
1 parent 79d18a4 commit 6da8921
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ object SizeModeSnippets3 {

@Composable
private fun MyContent() {
// Size will be the max available size for the AppWidget
// Size will be the size of the AppWidget
val size = LocalSize.current
Column {
Text(text = "Where to?", modifier = GlanceModifier.padding(12.dp))
Expand Down

0 comments on commit 6da8921

Please sign in to comment.