Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>Using image picker plugin requires this key-value pair</string>
<key>NSCameraUsageDescription</key>
<string>Using image picker plugin requires this key-value pair</string>
<key>NSMicrophoneUsageDescription</key>
<string>Using image picker plugin requires this key-value pair</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand Down
54 changes: 25 additions & 29 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,39 +341,35 @@ class _DemoHomeState extends State<DemoHome> {
appBar: AppBar(
title: const Text('Thumbnail Plugin example'),
),
body: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
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: <Widget>[
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: <Widget>[
if (_futureImage != null) _futureImage! else const SizedBox(),
],
),
child: (_futureImage != null) ? _futureImage! : const SizedBox(),
),
),
],
],
),
),
floatingActionButton: Row(
mainAxisAlignment: MainAxisAlignment.end,
Expand Down