File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class MyHomePage extends StatelessWidget {
56
56
previewAutoSizeWidth: true ,
57
57
previewMargin: const EdgeInsetsDirectional .only (end: 8 ),
58
58
fit: BoxFit .cover,
59
+ optionsClipBehavior: Clip .hardEdge,
59
60
initialValue: [
60
61
'https://images.pexels.com/photos/7078045/pexels-photo-7078045.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260' ,
61
62
const Text ('this is an image\n as a widget !' ),
Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
127
127
128
128
final WidgetBuilder ? loadingWidget;
129
129
130
+ final Clip ? optionsClipBehavior;
131
+
130
132
FormBuilderImagePicker ({
131
133
super .key,
132
134
required super .name,
@@ -169,6 +171,7 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
169
171
this .placeholderImage,
170
172
this .onTap,
171
173
this .optionsBuilder,
174
+ this .optionsClipBehavior,
172
175
this .availableImageSources = const [
173
176
ImageSourceOption .camera,
174
177
ImageSourceOption .gallery,
@@ -238,6 +241,7 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
238
241
? onTap (imageSourceSheet)
239
242
: await showModalBottomSheet <void >(
240
243
context: state.context,
244
+ clipBehavior: optionsClipBehavior,
241
245
builder: (_) {
242
246
return imageSourceSheet;
243
247
},
You can’t perform that action at this time.
0 commit comments