mirror of
https://github.com/skydoves/android-developer-roadmap.git
synced 2024-12-26 00:00:02 +03:00
updated from material to material3
This commit is contained in:
parent
7caef7df71
commit
d55ecf72d5
|
@ -41,7 +41,7 @@ android {
|
|||
|
||||
dependencies {
|
||||
implementation "androidx.compose.ui:ui:$compose_version"
|
||||
implementation "androidx.compose.material:material:$compose_version"
|
||||
implementation "androidx.compose.material3:material3"
|
||||
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
||||
implementation "androidx.compose.ui:ui-tooling:$compose_version"
|
||||
implementation "androidx.compose.runtime:runtime:$compose_version"
|
||||
|
|
|
@ -20,8 +20,8 @@ import android.os.Bundle
|
|||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.compose.setContent
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.material.MaterialTheme
|
||||
import androidx.compose.material.Surface
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.layout.ContentScale
|
||||
|
@ -42,7 +42,7 @@ class MainActivity : ComponentActivity() {
|
|||
setContent {
|
||||
AndroidDeveloperRoadmapTheme {
|
||||
Surface(
|
||||
color = MaterialTheme.colors.background
|
||||
color = MaterialTheme.colorScheme.background
|
||||
) {
|
||||
AndroidRoadmap()
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ class MainActivity : ComponentActivity() {
|
|||
|
||||
@Composable
|
||||
private fun AndroidRoadmap() {
|
||||
val background = MaterialTheme.colors.background
|
||||
val background = MaterialTheme.colorScheme.background
|
||||
CoilImage(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
|
@ -70,7 +70,7 @@ private fun AndroidRoadmap() {
|
|||
)
|
||||
}
|
||||
|
||||
@Preview(showBackground = true)
|
||||
@Preview(showBackground = true, showSystemUi = true)
|
||||
@Composable
|
||||
private fun DefaultPreview() {
|
||||
AndroidDeveloperRoadmapTheme {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package io.getstream.androiddeveloperroadmap.ui.theme
|
||||
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.Shapes
|
||||
import androidx.compose.material3.Shapes
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
val Shapes = Shapes(
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package io.getstream.androiddeveloperroadmap.ui.theme
|
||||
|
||||
import androidx.compose.material.Typography
|
||||
import androidx.compose.material3.Typography
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontFamily
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
|
@ -24,7 +24,7 @@ import androidx.compose.ui.unit.sp
|
|||
|
||||
// Set of Material typography styles to start with
|
||||
val Typography = Typography(
|
||||
body1 = TextStyle(
|
||||
bodyLarge = TextStyle(
|
||||
fontFamily = FontFamily.Default,
|
||||
fontWeight = FontWeight.Normal,
|
||||
fontSize = 16.sp
|
||||
|
|
|
@ -2,7 +2,7 @@ buildscript {
|
|||
ext {
|
||||
compose_version = '1.5.2'
|
||||
compose_compiler_version = '1.5.3'
|
||||
compose_activity_version = '1.7.2'
|
||||
compose_activity_version = '1.8.2'
|
||||
landscapist_version = '2.2.10'
|
||||
zoomable_version = '1.5.1'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue