fix: 查看吧规偶现闪退
This commit is contained in:
parent
d1f4ea0e3f
commit
bb80c7055d
|
|
@ -22,6 +22,7 @@ import com.huanchengfly.tieba.post.R
|
||||||
import com.huanchengfly.tieba.post.arch.collectPartialAsState
|
import com.huanchengfly.tieba.post.arch.collectPartialAsState
|
||||||
import com.huanchengfly.tieba.post.arch.getOrNull
|
import com.huanchengfly.tieba.post.arch.getOrNull
|
||||||
import com.huanchengfly.tieba.post.arch.pageViewModel
|
import com.huanchengfly.tieba.post.arch.pageViewModel
|
||||||
|
import com.huanchengfly.tieba.post.ui.page.ProvideNavigator
|
||||||
import com.huanchengfly.tieba.post.ui.widgets.compose.Avatar
|
import com.huanchengfly.tieba.post.ui.widgets.compose.Avatar
|
||||||
import com.huanchengfly.tieba.post.ui.widgets.compose.BackNavigationIcon
|
import com.huanchengfly.tieba.post.ui.widgets.compose.BackNavigationIcon
|
||||||
import com.huanchengfly.tieba.post.ui.widgets.compose.ErrorScreen
|
import com.huanchengfly.tieba.post.ui.widgets.compose.ErrorScreen
|
||||||
|
|
@ -78,6 +79,7 @@ fun ForumRuleDetailPage(
|
||||||
initial = null
|
initial = null
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ProvideNavigator(navigator = navigator) {
|
||||||
StateScreen(
|
StateScreen(
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
isEmpty = data.isEmpty(),
|
isEmpty = data.isEmpty(),
|
||||||
|
|
@ -139,7 +141,10 @@ fun ForumRuleDetailPage(
|
||||||
Text(text = preface)
|
Text(text = preface)
|
||||||
data.fastForEach {
|
data.fastForEach {
|
||||||
if (it.title.isNotEmpty()) {
|
if (it.title.isNotEmpty()) {
|
||||||
Text(text = it.title, style = MaterialTheme.typography.subtitle1)
|
Text(
|
||||||
|
text = it.title,
|
||||||
|
style = MaterialTheme.typography.subtitle1
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Column(
|
Column(
|
||||||
verticalArrangement = Arrangement.spacedBy(4.dp)
|
verticalArrangement = Arrangement.spacedBy(4.dp)
|
||||||
|
|
@ -154,4 +159,5 @@ fun ForumRuleDetailPage(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue