dm-114
This commit is contained in:
parent
23a217ee92
commit
b252b96dc2
1 changed files with 67 additions and 61 deletions
|
|
@ -181,7 +181,7 @@ fun MessageMessaging(
|
||||||
val topBarTitle = when (val state = uiState) {
|
val topBarTitle = when (val state = uiState) {
|
||||||
is MessagesUiState.Success -> state.roomTitle
|
is MessagesUiState.Success -> state.roomTitle
|
||||||
is MessagesUiState.Error -> "載入失敗"
|
is MessagesUiState.Error -> "載入失敗"
|
||||||
is MessagesUiState.Loading -> "載入中..."
|
is MessagesUiState.Loading -> ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -199,7 +199,11 @@ fun MessageMessaging(
|
||||||
),
|
),
|
||||||
containerColor = Color.Transparent,
|
containerColor = Color.Transparent,
|
||||||
topBar = {
|
topBar = {
|
||||||
// 1. 最外層保持用來做 Shared Element 容器轉場的 Box
|
Column() {
|
||||||
|
|
||||||
|
Spacer(modifier = Modifier.height(20.dp))
|
||||||
|
|
||||||
|
//topbar content
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
|
|
@ -271,6 +275,8 @@ fun MessageMessaging(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
,
|
,
|
||||||
bottomBar = {
|
bottomBar = {
|
||||||
// 👈 使用我們定義的 sealed interface 狀態機
|
// 👈 使用我們定義的 sealed interface 狀態機
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue