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 @@ -131,6 +131,8 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
131
131
132
132
final WidgetBuilder ? loadingWidget;
133
133
134
+ final Clip ? optionsClipBehavior;
135
+
134
136
FormBuilderImagePicker ({
135
137
super .key,
136
138
required super .name,
@@ -173,6 +175,7 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
173
175
this .placeholderImage,
174
176
this .onTap,
175
177
this .optionsBuilder,
178
+ this .optionsClipBehavior,
176
179
this .availableImageSources = const [
177
180
ImageSourceOption .camera,
178
181
ImageSourceOption .gallery,
@@ -242,6 +245,7 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
242
245
? onTap (imageSourceSheet)
243
246
: await showModalBottomSheet <void >(
244
247
context: state.context,
248
+ clipBehavior: optionsClipBehavior,
245
249
builder: (_) {
246
250
return imageSourceSheet;
247
251
},
You can’t perform that action at this time.
0 commit comments