Skip to content

Chore/imagepicker#130

Open
BohunD wants to merge 5 commits intodevfrom
chore/imagepicker
Open

Chore/imagepicker#130
BohunD wants to merge 5 commits intodevfrom
chore/imagepicker

Conversation

@BohunD
Copy link
Contributor

@BohunD BohunD commented Jul 17, 2025

No description provided.

@mkhotych
Copy link
Collaborator

image-picker-demo.mp4

import kotlinx.coroutines.launch
import java.io.File

class ImagePickerState(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай ще додамо конфіг для того, щоб не відображати діалог з вибором камера чи файл, щоб можна було одразу відображати тільки файл-пікер. Я думаю, це може бути корисно в певних випадках

var isImageCompressionProceed by mutableStateOf(false)
private set

fun processPickedUris(uris: List<Uri>, context: Context) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мені здається, що цей метод має бути приватним

}
}

fun processPickedFiles(files: List<File>, context: Context) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

і цей

Comment on lines +104 to +105
photoTooLargeErrorMessage: String,
compressionErrorMessage: String,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я не бачу сенсу створювати ще один overload з параметрами, які фактично не використовуються в стейті, а просто повертаються в тому ж колбеці showErrorSnackbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants