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
|
@Composable
|
||||||
private fun AgendaContent(agenda: List<AgendaDay>) {
|
private fun AgendaContent(agenda: List<AgendaDay>) {
|
||||||
Scaffold(
|
Scaffold(
|
||||||
titleBar = TitleBar(
|
titleBar = {
|
||||||
startIcon = null,
|
TitleBar(
|
||||||
title = "Agenda",
|
title = "Agenda",
|
||||||
textColor = GlanceTheme.colors.onSurface,
|
textColor = GlanceTheme.colors.onSurface,
|
||||||
),
|
)
|
||||||
|
},
|
||||||
backgroundColor = GlanceTheme.colors.widgetBackground,
|
backgroundColor = GlanceTheme.colors.widgetBackground,
|
||||||
modifier = GlanceModifier.clickable(actionStartActivity<MainActivity>()),
|
modifier = GlanceModifier.clickable(actionStartActivity<MainActivity>()),
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue