TP-49506 revert material 3 version upgrade (#248)

This commit is contained in:
Hitesh Kumar
2023-11-27 19:26:48 +05:30
committed by GitHub
parent 44ef93b6a9
commit 1702828ab6
2 changed files with 3 additions and 3 deletions

View File

@@ -101,5 +101,5 @@ dependencies {
api "io.coil-kt:coil-compose:2.4.0"
testImplementation "junit:junit:4.13.2"
androidTestImplementation "androidx.test.ext:junit:1.1.5"
implementation 'androidx.compose.material3:material3:1.2.0-alpha11'
implementation 'androidx.compose.material3:material3:1.1.2'
}

View File

@@ -619,7 +619,7 @@ fun String?.toDoubleWithSafe(): Double {
}
}
fun getTextAlignment(textAlignment: String?): TextAlign {
fun getTextAlignment(textAlignment: String?): TextAlign? {
return when (textAlignment) {
TextAlign.Start.toString() -> TextAlign.Start
TextAlign.End.toString() -> TextAlign.End
@@ -627,7 +627,7 @@ fun getTextAlignment(textAlignment: String?): TextAlign {
TextAlign.Left.toString() -> TextAlign.Left
TextAlign.Right.toString() -> TextAlign.Right
TextAlign.Justify.toString() -> TextAlign.Justify
else -> TextAlign.Unspecified
else -> null
}
}