File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -452,6 +452,7 @@ class MyHomePageState extends State<MyHomePage> {
452452 decoration: const InputDecoration (
453453 labelText: 'Images' ,
454454 ),
455+ defaultImage: NetworkImage ('https://cohenwoodworking.com/wp-content/uploads/2016/09/image-placeholder-500x500.jpg' ),
455456 maxImages: 3 ,
456457 iconColor: Colors .red,
457458 // readOnly: true,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class FormBuilderImagePicker extends StatefulWidget {
3939 final CameraDevice preferredCameraDevice;
4040
4141 final int maxImages;
42- final String defaultImage;
42+ final ImageProvider defaultImage;
4343 final Widget cameraIcon;
4444 final Widget galleryIcon;
4545 final Widget cameraLabel;
@@ -195,7 +195,7 @@ class _FormBuilderImagePickerState extends State<FormBuilderImagePicker> {
195195 Image (
196196 width: widget.imageWidth,
197197 height: widget.imageHeight,
198- image: AssetImage ( widget.defaultImage) ,
198+ image: widget.defaultImage,
199199 ): Container (
200200 width: widget.imageWidth,
201201 height: widget.imageHeight,
You can’t perform that action at this time.
0 commit comments