Skip to content

Commit

Permalink
fixup! Update Glance weather widget to use Scaffold.
Browse files Browse the repository at this point in the history
  • Loading branch information
shamalip committed Jan 18, 2025
1 parent d8e7bc1 commit 3eafc2f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fun AppWidgetBox(
content: @Composable () -> Unit,
) {
Scaffold(
horizontalPadding = widgetPadding,
modifier = GlanceModifier
.padding(vertical = widgetPadding)
) {
Expand All @@ -72,6 +73,7 @@ fun AppWidgetColumn(
content: @Composable ColumnScope.() -> Unit,
) {
Scaffold(
horizontalPadding = widgetPadding,
modifier = GlanceModifier
.padding(vertical = widgetPadding)
) {
Expand Down Expand Up @@ -108,4 +110,5 @@ fun stringResource(@StringRes id: Int, vararg args: Any): String {
return LocalContext.current.getString(id, args)
}

// Padding around the widget
val widgetPadding = 12.dp

0 comments on commit 3eafc2f

Please sign in to comment.