2022-08-29 14:52:48 +02:00
# Flutter Image Picker
Flutter Image Picker is a package you can use to implement an Image Picker in your Flutter app.
2022-09-01 12:04:18 +02:00

2022-08-29 14:52:48 +02:00
## Features
2022-08-31 16:54:45 +02:00
With the Flutter Image Picker you can select an existing picture from the gallery or make a picture with the camera to use in your app.
2022-08-29 14:52:48 +02:00
## Usage
2022-08-31 16:54:45 +02:00
To use this package, add `flutter_image_picker` as a [dependency in your pubspec.yaml file ](https://flutter.dev/docs/development/platform-integration/platform-channels ).
## Example
2022-08-31 17:05:15 +02:00
See the [Example Code ](example/lib/main.dart ) for an example on how to use this package.
2022-08-31 16:54:45 +02:00
2022-09-01 17:07:53 +02:00
You can add an optional `ImagePickerTheme()` to the `ImagePicker()` to change the layout of the Image Picker Dialog. You can add the following parameters to the `ImagePickerTheme` :
2022-09-01 17:09:40 +02:00
An example on how to add a parameter to the `ImagePickerTheme()` is: `ImagePickerTheme(imagePickerTheme: const ImagePickerTheme(title: "Image Picker"))` .
As a whole you get `ImagePicker(ImagePickerTheme(imagePickerTheme: const ImagePickerTheme(title: "Image Picker")))`
2022-09-01 17:07:53 +02:00
2022-08-31 17:03:20 +02:00
| Parameter | Explaination |
|-------------------|----------------|
2022-09-01 17:00:59 +02:00
| title | The title displayed at the top of the Image Picker Dialog. |
| titleTextSize | The font size of the title mentioned above. |
| iconSize | The size of the icons that are visible in the Image Picker Dialog. |
| iconTextSize | The font size of the text underneath the icon buttons. |
| spaceBetweenIcons | The size of the space between the two icons in the Image Picker Dialog. |
| makePhotoIcon | The icon that is displayed for the 'Make Photo' functionality of the Image Picker Dialog. |
| makePhotoText | The text that is displayed underneath the 'Make Photo' icon. |
| selectImageIcon | The icon that is displayed for the 'Select Image From Gallery' functionality of the Image Picker Dialog. |
| selectImageText | The text that is displayed underneath the 'Select Image From Gallery' icon. |
| closeButtonText | The text that is shown on the 'Close Dialog' button at the bottom of the Image Picker Dialog. |
| closeButtonWidth | The width of the 'Close Dialog' button at the bottom of the Image Picker Dialog. |
| closeButtonHeight | The height of the 'Close Dialog' button at the bottom of the Image Picker Dialog. |
2022-09-01 12:04:18 +02:00
## Issues & Feedback
2022-09-01 12:09:32 +02:00
Please file an [issue ](https://github.com/Iconica-Development/flutter_image_picker/issues ) to send feedback or report a bug.
2022-09-01 12:04:18 +02:00
Thank you!
## Contributing
Every pull request is welcome.