Bottom Dialog Android Picker
Bottom dialog picker like telegram for all version of android (1 ... , 10 , 11 , 12 , 13)
Take picture with camera and save to storage
Search in Files
Support android 10+
Expandable and scrollable dialog
Full Customisable (Color , text , minimum and maximum selected file size , ...)
No required runtime permission
Screenshots
Installation
Step 1. Add the JitPack repository to your build file
Install my project with gradle
Add it in your root build.gradle at the end of repositories:
Step 2. Add the dependency
Ho To Use
val isShowButtomDialog = remember { mutableStateOf(true) }
val config = PickerConfig(
currentType = PickerType.Image,
modes = listOf(PickerMode(PickerType.Image, title = "عکس")), // you can choose Image, Video, File, Audio and customize each picker mode
storageTitle = "حافظه دستگاه",
storageDescription = "برای انتخاب فایل از فایل منیجر دستگاه",
galleryTitle = "گالری",
galleryDescription = "برای انتخاب فایل از گالری دستگاه",
supportRtl = true,
maxSelection = 12,
searchTextHint = "جستجو",
searchTextHintStyle = TextStyle(textAlign = TextAlign.Right)
)
FilePickerDialog(
config = config,
onDismissDialog = { isShowButtomDialog.value = false },
selectedFiles = {
it.printToLog("selectedFiles")
}
)
Customize:
Refer to this link to learn about the parameters that can be customized:
https://github.com/mahdiasd/ComposeBottomDialogFilePicker/blob/master/BottomDialogFilePicker/src/main/java/mahdiasd/bottomdialogfilepicker/PickerConfig.kt