diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 8167a88..16a9ecf 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -24,6 +24,12 @@ $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS + NSPhotoLibraryUsageDescription + Using image picker plugin requires this key-value pair + NSCameraUsageDescription + Using image picker plugin requires this key-value pair + NSMicrophoneUsageDescription + Using image picker plugin requires this key-value pair UILaunchStoryboardName LaunchScreen UIMainStoryboardFile diff --git a/example/lib/main.dart b/example/lib/main.dart index 23fe46a..7073444 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -341,39 +341,35 @@ class _DemoHomeState extends State { appBar: AppBar( title: const Text('Thumbnail Plugin example'), ), - body: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Padding( - padding: const EdgeInsets.fromLTRB(2, 10, 2, 8), - child: TextField( - decoration: const InputDecoration( - border: OutlineInputBorder(), - filled: true, - isDense: true, - labelText: 'Video URI', + body: SingleChildScrollView( + padding: const EdgeInsets.only(bottom: 150), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Padding( + padding: const EdgeInsets.fromLTRB(2, 10, 2, 8), + child: TextField( + decoration: const InputDecoration( + border: OutlineInputBorder(), + filled: true, + isDense: true, + labelText: 'Video URI', + ), + maxLines: null, + controller: _video, + focusNode: _editNode, + keyboardType: TextInputType.url, + textInputAction: TextInputAction.done, + onEditingComplete: _editNode.unfocus, ), - maxLines: null, - controller: _video, - focusNode: _editNode, - keyboardType: TextInputType.url, - textInputAction: TextInputAction.done, - onEditingComplete: _editNode.unfocus, ), - ), - for (var i in settings) i, - Expanded( - child: Container( + for (var i in settings) i, + Container( color: Colors.grey[300], - child: ListView( - shrinkWrap: true, - children: [ - if (_futureImage != null) _futureImage! else const SizedBox(), - ], - ), + child: (_futureImage != null) ? _futureImage! : const SizedBox(), ), - ), - ], + ], + ), ), floatingActionButton: Row( mainAxisAlignment: MainAxisAlignment.end,