diff --git a/compose_image_picker/build.gradle b/compose_image_picker/build.gradle index 67dffcc..1f41835 100644 --- a/compose_image_picker/build.gradle +++ b/compose_image_picker/build.gradle @@ -100,9 +100,8 @@ signing { dependencies { implementation 'androidx.core:core-ktx:1.12.0' - implementation 'androidx.appcompat:appcompat:1.6.1' - implementation platform("dev.chrisbanes.compose:compose-bom:2024.02.00-alpha01") + implementation platform("dev.chrisbanes.compose:compose-bom:2024.02.00-alpha02") implementation 'androidx.compose.material3:material3' implementation "androidx.compose.ui:ui" diff --git a/compose_image_picker/src/main/java/com/huhx/picker/component/AssetImageItem.kt b/compose_image_picker/src/main/java/com/huhx/picker/component/AssetImageItem.kt index 68f7ceb..5866e66 100644 --- a/compose_image_picker/src/main/java/com/huhx/picker/component/AssetImageItem.kt +++ b/compose_image_picker/src/main/java/com/huhx/picker/component/AssetImageItem.kt @@ -83,13 +83,11 @@ fun AssetImageItem( ) if (onDelete != null) { - Column( - modifier = Modifier.align(Alignment.TopEnd) - ) { + Column(modifier = Modifier.align(Alignment.TopEnd)) { IconButton( modifier = Modifier .padding(top = 4.dp, end = 4.dp) - .size(24.dp), + .size(16.dp), onClick = onDelete, ) { Icon( @@ -102,9 +100,7 @@ fun AssetImageItem( } if (resourceType == AssetResourceType.VIDEO) { - Column( - modifier = Modifier.align(Alignment.BottomEnd), - ) { + Column(modifier = Modifier.align(Alignment.BottomEnd)) { Text( modifier = Modifier.padding(bottom = 8.dp, end = 8.dp), text = durationString ?: "00:00", diff --git a/compose_image_picker/src/main/java/com/huhx/picker/view/AssetSelectorScreen.kt b/compose_image_picker/src/main/java/com/huhx/picker/view/AssetSelectorScreen.kt index 0edd257..742e5c7 100644 --- a/compose_image_picker/src/main/java/com/huhx/picker/view/AssetSelectorScreen.kt +++ b/compose_image_picker/src/main/java/com/huhx/picker/view/AssetSelectorScreen.kt @@ -98,23 +98,3 @@ internal fun AssetSelectorScreen( } } } - -@Composable -@OptIn(ExperimentalMaterial3Api::class) -private fun DirectoryTopAppBar(directory: String, navigateUp: () -> Unit) { - CenterAlignedTopAppBar( - modifier = Modifier.statusBarsPadding(), - navigationIcon = { - IconButton(onClick = navigateUp) { - Icon(Icons.Filled.Close, contentDescription = "") - } - }, - title = { - Row(modifier = Modifier.clickable(onClick = navigateUp)) { - Text(directory, fontSize = 18.sp) - Icon(Icons.Default.KeyboardArrowUp, contentDescription = "") - } - } - ) -} -