diff --git a/README.md b/README.md index 3b00829..aabb149 100644 --- a/README.md +++ b/README.md @@ -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 | |-------------------|----------------| diff --git a/example/lib/main.dart b/example/lib/main.dart index 5e7f64c..cb536af 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -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.