From becbdb209390dba6a0a3bbe12aa09b90e2d53af4 Mon Sep 17 00:00:00 2001 From: commitimpush Date: Mon, 5 Sep 2022 11:41:32 +0200 Subject: [PATCH] Image picker widget now scrollable if necessary --- lib/src/ui/flutter_image_picker_ui.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/ui/flutter_image_picker_ui.dart b/lib/src/ui/flutter_image_picker_ui.dart index 607b8f6..5f01e02 100644 --- a/lib/src/ui/flutter_image_picker_ui.dart +++ b/lib/src/ui/flutter_image_picker_ui.dart @@ -22,7 +22,8 @@ class ImagePicker extends StatelessWidget { @override Widget build(BuildContext context) { - return Wrap( + return SingleChildScrollView( + child: Wrap( children: [ ListTile( title: Text( @@ -68,7 +69,7 @@ class ImagePicker extends StatelessWidget { height: 60, ), ], - ); + )); } /// The [_generateIconButtonWithText] function returns a column that includes an [IconButton] and [Text].