File tree Expand file tree Collapse file tree 3 files changed +26
-31
lines changed Expand file tree Collapse file tree 3 files changed +26
-31
lines changed Original file line number Diff line number Diff line change 1
1
# form_builder_file_picker
2
2
3
- File Picker for FlutterFormBuilder package
3
+ File Picker Field for [ FlutterFormBuilder package] ( https://pub.dev/packages/flutter_form_builder )
4
4
5
- ## Getting Started
5
+ # Getting Started
6
6
7
- This project is a starting point for a Dart
8
- [ package] ( https://flutter.dev/developing-packages/ ) ,
9
- a library module containing code that can be shared easily across
10
- multiple Flutter or Dart projects.
7
+ Read multi_image_picker setup [ here] ( https://sh1d0w.github.io/multi_image_picker/#/initialsetup )
11
8
12
- For help getting started with Flutter, view our
13
- [ online documentation] ( https://flutter.dev/docs ) , which offers tutorials,
14
- samples, guidance on mobile development, and a full API reference.
9
+ Read flutter_file_picker setup [ here] ( https://github.com/miguelpruivo/flutter_file_picker/wiki/Setup#android )
Original file line number Diff line number Diff line change @@ -115,24 +115,24 @@ class _FormBuilderFilePickerState extends State<FormBuilderFilePicker> {
115
115
Container (
116
116
margin: EdgeInsets .only (right: 2 ),
117
117
child: (key.contains ('.jpg' ) ||
118
- key.contains ('.jpeg' ) ||
119
- key.contains ('.png' ))
118
+ key.contains ('.jpeg' ) ||
119
+ key.contains ('.png' ))
120
120
? Image .file (
121
- File (_images[key]),
122
- fit: BoxFit .cover,
123
- height: 150 ,
124
- width: 150 ,
125
- )
121
+ File (_images[key]),
122
+ fit: BoxFit .cover,
123
+ height: 150 ,
124
+ width: 150 ,
125
+ )
126
126
: Container (
127
- child: Icon (
128
- Icons .insert_drive_file,
129
- color: Colors .white,
130
- size: 72 ,
131
- ),
132
- color: Theme .of (context).primaryColor,
133
- width: 150 ,
134
- height: 150 ,
135
- ),
127
+ child: Icon (
128
+ Icons .insert_drive_file,
129
+ color: Colors .white,
130
+ size: 72 ,
131
+ ),
132
+ color: Theme .of (context).primaryColor,
133
+ width: 150 ,
134
+ height: 150 ,
135
+ ),
136
136
),
137
137
if (! _readonly)
138
138
InkWell (
@@ -175,8 +175,8 @@ class _FormBuilderFilePickerState extends State<FormBuilderFilePicker> {
175
175
.checkPermissionStatus (PermissionGroup .storage);
176
176
if (permission != PermissionStatus .granted) {
177
177
Map <PermissionGroup , PermissionStatus > permissions =
178
- await PermissionHandler ()
179
- .requestPermissions ([PermissionGroup .storage]);
178
+ await PermissionHandler ()
179
+ .requestPermissions ([PermissionGroup .storage]);
180
180
if (permissions[PermissionGroup .storage] != PermissionStatus .granted)
181
181
throw new Exception ("Permission not granted" );
182
182
}
Original file line number Diff line number Diff line change 1
1
name : form_builder_file_picker
2
- description : File Picker for FlutterFormBuilder package
2
+ description : File Picker Field for FlutterFormBuilder package. Used to select files as part of form input.
3
3
version : 0.0.1
4
- author :
5
- homepage :
4
+ author : Danvick Miller <danvickmiller@gmail.com>
5
+ homepage : https://github.com/danvick/form_builder_file_picker
6
6
7
7
environment :
8
- sdk : " >=2.1 .0 <3.0.0"
8
+ sdk : " >=2.5 .0 <3.0.0"
9
9
10
10
dependencies :
11
11
flutter :
You can’t perform that action at this time.
0 commit comments