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> {
452
452
decoration: const InputDecoration (
453
453
labelText: 'Images' ,
454
454
),
455
+ defaultImage: NetworkImage ('https://cohenwoodworking.com/wp-content/uploads/2016/09/image-placeholder-500x500.jpg' ),
455
456
maxImages: 3 ,
456
457
iconColor: Colors .red,
457
458
// readOnly: true,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class FormBuilderImagePicker extends StatefulWidget {
39
39
final CameraDevice preferredCameraDevice;
40
40
41
41
final int maxImages;
42
- final String defaultImage;
42
+ final ImageProvider defaultImage;
43
43
final Widget cameraIcon;
44
44
final Widget galleryIcon;
45
45
final Widget cameraLabel;
@@ -195,7 +195,7 @@ class _FormBuilderImagePickerState extends State<FormBuilderImagePicker> {
195
195
Image (
196
196
width: widget.imageWidth,
197
197
height: widget.imageHeight,
198
- image: AssetImage ( widget.defaultImage) ,
198
+ image: widget.defaultImage,
199
199
): Container (
200
200
width: widget.imageWidth,
201
201
height: widget.imageHeight,
You can’t perform that action at this time.
0 commit comments