Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorKabata committed Nov 22, 2024
1 parent 8c0c3c3 commit a26e51a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.sp

@Composable
fun ExpandableText(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import coil3.compose.AsyncImage
import com.kmpalette.loader.NetworkLoader
import com.kmpalette.loader.rememberNetworkLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ fun DialogPreferenceSelection(
Text(
modifier = Modifier.clickable { onNegativeClick() },
text = "Cancel".toUpperCase(Locale.current),
style = MaterialTheme.typography.headlineMedium,
style = MaterialTheme.typography.headlineMedium.copy(fontSize = 16.sp),
color = MaterialTheme.colorScheme.primary,
fontSize = 16.sp,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
textAlign = TextAlign.Center
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fun PreferencesGroup(
isLast: Boolean = false,
content: @Composable ColumnScope.() -> Unit
) {
Column(modifier=modifier) {
Column(modifier = modifier) {
if (!title.isNullOrEmpty()) {
Text(
modifier = Modifier.padding(horizontal = 12.dp, vertical = 4.dp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

@Composable
fun TextPreference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import com.vickbt.shared.resources.Res
import com.vickbt.shared.resources.cast
import com.vickbt.shared.resources.overview
import com.vickbt.shared.resources.similar_movies
import com.vickbt.shared.resources.trending_movies
import org.jetbrains.compose.resources.stringResource
import org.koin.compose.koinInject
import org.koin.compose.viewmodel.koinViewModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ fun FavoritesScreen(
Box(modifier = Modifier.fillMaxSize().padding(paddingValues)) {
if (favoritesUiState.isLoading) {
CircularProgressIndicator(modifier = Modifier.align(Alignment.Center))
}else if (!favoritesUiState.error.isNullOrEmpty()) {
} else if (!favoritesUiState.error.isNullOrEmpty()) {
Text(
modifier = Modifier.align(Alignment.Center),
text = "Error:\n${favoritesUiState.error}",
textAlign = TextAlign.Center,
style = MaterialTheme.typography.headlineMedium
)
}else{
} else {
LazyColumn(
modifier = Modifier.align(Alignment.Center).fillMaxSize()
.padding(horizontal = 16.dp)
Expand Down

0 comments on commit a26e51a

Please sign in to comment.