updating to latest material3 lib
This commit is contained in:
parent
6532478fc8
commit
86a8865cd1
|
@ -108,7 +108,7 @@ ext.Dependencies.with {
|
||||||
|
|
||||||
androidxComposeUi = "androidx.compose.ui:ui:${composeVer}"
|
androidxComposeUi = "androidx.compose.ui:ui:${composeVer}"
|
||||||
androidxComposeFoundation = "androidx.compose.foundation:foundation:${composeVer}"
|
androidxComposeFoundation = "androidx.compose.foundation:foundation:${composeVer}"
|
||||||
androidxComposeMaterial = "androidx.compose.material3:material3:1.0.0-beta01"
|
androidxComposeMaterial = "androidx.compose.material3:material3:1.0.0-beta03"
|
||||||
androidxComposeIconsExtended = "androidx.compose.material:material-icons-extended:${composeVer}"
|
androidxComposeIconsExtended = "androidx.compose.material:material-icons-extended:${composeVer}"
|
||||||
androidxActivityCompose = "androidx.activity:activity-compose:1.4.0"
|
androidxActivityCompose = "androidx.activity:activity-compose:1.4.0"
|
||||||
kotlinCompilerExtensionVersion = "1.3.1"
|
kotlinCompilerExtensionVersion = "1.3.1"
|
||||||
|
|
|
@ -19,7 +19,7 @@ fun Toolbar(
|
||||||
actions: @Composable RowScope.() -> Unit = {}
|
actions: @Composable RowScope.() -> Unit = {}
|
||||||
) {
|
) {
|
||||||
val navigationIcon = foo(onNavigate)
|
val navigationIcon = foo(onNavigate)
|
||||||
SmallTopAppBar(
|
TopAppBar(
|
||||||
modifier = offset?.let { Modifier.offset(it) } ?: Modifier,
|
modifier = offset?.let { Modifier.offset(it) } ?: Modifier,
|
||||||
colors = TopAppBarDefaults.smallTopAppBarColors(
|
colors = TopAppBarDefaults.smallTopAppBarColors(
|
||||||
containerColor = MaterialTheme.colorScheme.background
|
containerColor = MaterialTheme.colorScheme.background
|
||||||
|
|
|
@ -10,7 +10,7 @@ inline fun <reified VM : ViewModel> ComponentActivity.viewModel(
|
||||||
): Lazy<VM> {
|
): Lazy<VM> {
|
||||||
val factoryPromise = object : Factory {
|
val factoryPromise = object : Factory {
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
override fun <T : ViewModel?> create(modelClass: Class<T>) = when (modelClass) {
|
override fun <T : ViewModel> create(modelClass: Class<T>) = when (modelClass) {
|
||||||
VM::class.java -> factory() as T
|
VM::class.java -> factory() as T
|
||||||
else -> throw Error()
|
else -> throw Error()
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,10 @@ import app.dapk.st.core.LifecycleEffect
|
||||||
import app.dapk.st.core.StartObserving
|
import app.dapk.st.core.StartObserving
|
||||||
import app.dapk.st.core.components.CenteredLoading
|
import app.dapk.st.core.components.CenteredLoading
|
||||||
import app.dapk.st.core.extensions.takeIfContent
|
import app.dapk.st.core.extensions.takeIfContent
|
||||||
import app.dapk.st.design.components.*
|
import app.dapk.st.design.components.MessengerUrlIcon
|
||||||
|
import app.dapk.st.design.components.MissingAvatarIcon
|
||||||
|
import app.dapk.st.design.components.SmallTalkTheme
|
||||||
|
import app.dapk.st.design.components.Toolbar
|
||||||
import app.dapk.st.matrix.common.RoomId
|
import app.dapk.st.matrix.common.RoomId
|
||||||
import app.dapk.st.matrix.common.UserId
|
import app.dapk.st.matrix.common.UserId
|
||||||
import app.dapk.st.matrix.sync.MessageMeta
|
import app.dapk.st.matrix.sync.MessageMeta
|
||||||
|
|
Loading…
Reference in New Issue