Skip to content

Commit

Permalink
Merge pull request #20 from founchoo/dev
Browse files Browse the repository at this point in the history
修改成绩列表 ListItem 组件的的边距(Padding)为 0
  • Loading branch information
founchoo committed Dec 30, 2023
2 parents 56b2e1a + e882a97 commit 3a20728
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/src/main/java/com/dart/campushelper/ui/grade/GradeItem.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
package com.dart.campushelper.ui.grade

import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ListItem
import androidx.compose.material3.ListItemDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.dart.campushelper.R
import com.dart.campushelper.model.Grade
import com.dart.campushelper.utils.AcademicYearAndSemester
Expand All @@ -24,8 +20,7 @@ fun GradeItem(grade: Grade, uiState: GradeUiState, viewModel: GradeViewModel) {
.clickable {
viewModel.setIsGradeDetailDialogOpen(true)
viewModel.setContentForGradeDetailDialog(grade)
}
.padding(horizontal = 10.dp),
},
headlineContent = {
Text(
text = grade.name,
Expand All @@ -52,9 +47,6 @@ fun GradeItem(grade: Grade, uiState: GradeUiState, viewModel: GradeViewModel) {
}
}"
)
},
colors = ListItemDefaults.colors(
containerColor = MaterialTheme.colorScheme.surface,
)
}
)
}

0 comments on commit 3a20728

Please sign in to comment.