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 {
5656 previewAutoSizeWidth: true ,
5757 previewMargin: const EdgeInsetsDirectional .only (end: 8 ),
5858 fit: BoxFit .cover,
59+ optionsClipBehavior: Clip .hardEdge,
5960 initialValue: [
6061 'https://images.pexels.com/photos/7078045/pexels-photo-7078045.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260' ,
6162 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>> {
127127
128128 final WidgetBuilder ? loadingWidget;
129129
130+ final Clip ? optionsClipBehavior;
131+
130132 FormBuilderImagePicker ({
131133 super .key,
132134 required super .name,
@@ -169,6 +171,7 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
169171 this .placeholderImage,
170172 this .onTap,
171173 this .optionsBuilder,
174+ this .optionsClipBehavior,
172175 this .availableImageSources = const [
173176 ImageSourceOption .camera,
174177 ImageSourceOption .gallery,
@@ -238,6 +241,7 @@ class FormBuilderImagePicker extends FormBuilderFieldDecoration<List<dynamic>> {
238241 ? onTap (imageSourceSheet)
239242 : await showModalBottomSheet <void >(
240243 context: state.context,
244+ clipBehavior: optionsClipBehavior,
241245 builder: (_) {
242246 return imageSourceSheet;
243247 },
You can’t perform that action at this time.
0 commit comments