mirror of
https://github.com/Iconica-Development/flutter_image_picker.git
synced 2025-05-18 11:43:44 +02:00
update documentation
This commit is contained in:
parent
8cf757f4e7
commit
8436a417ae
2 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,8 @@ To use this package, add `flutter_image_picker` as a [dependency in your pubspec
|
|||
See the [Example Code](example/lib/main.dart) for an example on how to use this package.
|
||||
|
||||
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`:
|
||||
An example on how to add a parameter to the `ImagePickerTheme()` is: `ImagePickerTheme(imagePickerTheme: const ImagePickerTheme(title: "Image Picker"))`
|
||||
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")))`
|
||||
|
||||
| Parameter | Explaination |
|
||||
|-------------------|----------------|
|
||||
|
|
|
@ -91,6 +91,7 @@ class _ImagePickerExampleHomePageState
|
|||
/// The most important part is the [ImagePicker] call.
|
||||
/// You can add a custom [ImagePickerTheme] to the [ImagePicker] if you want to change some of the UI.
|
||||
/// An example on how to do that is: ImagePickerTheme(imagePickerTheme: const ImagePickerTheme(title: "Image Picker")).
|
||||
/// As a whole you get `ImagePicker(ImagePickerTheme(imagePickerTheme: const ImagePickerTheme(title: "Image Picker")))`
|
||||
/// Check the README for all possible parameters you can add in the [ImagePickerTheme].
|
||||
/// This function saves the image in a variable and if it's different than the current image it will get displayed in the application.
|
||||
/// When the same image is chosen there will be a snackbar popping up to let you know it's already being displayed.
|
||||
|
|
Loading…
Reference in a new issue