From 9402136b5d81ccf333641fd66056ac205948d8f8 Mon Sep 17 00:00:00 2001 From: Stein Milder Date: Fri, 30 Sep 2022 09:27:02 +0200 Subject: [PATCH] fix: stateful or stateless widget as customButton --- lib/src/ui/image_picker.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/ui/image_picker.dart b/lib/src/ui/image_picker.dart index 39030e7..ccca601 100644 --- a/lib/src/ui/image_picker.dart +++ b/lib/src/ui/image_picker.dart @@ -20,7 +20,7 @@ class ImagePicker extends StatelessWidget { final ImagePickerTheme imagePickerTheme; /// The Image Picker Dialog can have a custom button if you want to. - final StatelessWidget? customButton; + final Widget? customButton; /// The ImagePickerService can be used if you want to use your own implementation of the Image Service if you want to use it for testing or add more features. If null the current implementation will be used. final ImagePickerService? imagePickerService;