/Photo_Picker

Simple photo picker implementation in Jetpack Compose for selecting and displaying single or multiple images.

Primary LanguageKotlin

Photo Picker in Jetpack Compose

This project demonstrates a simple implementation of photo picking functionality in Jetpack Compose, allowing users to select both single and multiple images from their device's gallery.

Features

  • Single Photo Picker: Pick a single image from the gallery and display it using AsyncImage.
  • Multiple Photo Picker: Pick multiple images from the gallery and display them in a lazy column.

Components

  • SinglePhotoPicker: A composable function that allows the user to pick a single image from the gallery.
  • MultiplePhotoPicker: A composable function that allows the user to pick multiple images from the gallery and displays them in a list.

How to Use

  1. Single Image Selection:

    • Press the "Pick Single Image" button.
    • Choose an image from the gallery.
    • The selected image will be displayed below the button.
  2. Multiple Image Selection:

    • Press the "Pick Multiple Images" button.
    • Choose multiple images from the gallery.
    • The selected images will be displayed in a scrollable list.

Screenshots

First Screenshot Second Screenshot

Dependencies

  • Jetpack Compose: Used for building the UI components.
  • Coil: Used for loading and displaying images asynchronously.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Create a new Pull Request.

Contact

For questions or feedback, please contact @Bhavyansh03-tech.