fix scaffold titlebar: use lambda and drop null startIcon
This commit is contained in:
parent
d54a7ef5eb
commit
6e2cd059e9
1 changed files with 6 additions and 5 deletions
|
|
@ -61,11 +61,12 @@ class AgendaWidget : GlanceAppWidget() {
|
|||
@Composable
|
||||
private fun AgendaContent(agenda: List<AgendaDay>) {
|
||||
Scaffold(
|
||||
titleBar = TitleBar(
|
||||
startIcon = null,
|
||||
title = "Agenda",
|
||||
textColor = GlanceTheme.colors.onSurface,
|
||||
),
|
||||
titleBar = {
|
||||
TitleBar(
|
||||
title = "Agenda",
|
||||
textColor = GlanceTheme.colors.onSurface,
|
||||
)
|
||||
},
|
||||
backgroundColor = GlanceTheme.colors.widgetBackground,
|
||||
modifier = GlanceModifier.clickable(actionStartActivity<MainActivity>()),
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue