File tree Expand file tree Collapse file tree
compose-android/src/main/java/com/streamliners/compose/android/comp/appBar Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.streamliners.compose.android.comp.appBar
22
3+ import androidx.compose.foundation.ExperimentalFoundationApi
4+ import androidx.compose.foundation.basicMarquee
35import androidx.compose.foundation.layout.PaddingValues
46import androidx.compose.foundation.layout.RowScope
57import androidx.compose.foundation.layout.fillMaxSize
@@ -38,7 +40,7 @@ fun TitleBarScaffold(
3840 }
3941}
4042
41- @OptIn(ExperimentalMaterial3Api ::class )
43+ @OptIn(ExperimentalMaterial3Api ::class , ExperimentalFoundationApi :: class )
4244@Composable
4345fun TitleBar (
4446 title : String ,
@@ -48,7 +50,11 @@ fun TitleBar(
4850) {
4951 TopAppBar (
5052 title = {
51- Text (title)
53+ Text (
54+ modifier = Modifier .basicMarquee(),
55+ text = title,
56+ maxLines = 1
57+ )
5258 },
5359 navigationIcon = {
5460 navigationIcon?.invoke() ? :
You can’t perform that action at this time.
0 commit comments