Skip to content

Commit 007a855

Browse files
committed
Started working on documentation
1 parent f884e84 commit 007a855

File tree

3 files changed

+26
-31
lines changed

3 files changed

+26
-31
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# form_builder_file_picker
22

3-
File Picker for FlutterFormBuilder package
3+
File Picker Field for [FlutterFormBuilder package](https://pub.dev/packages/flutter_form_builder)
44

5-
## Getting Started
5+
# Getting Started
66

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)
118

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)

lib/src/form_builder_form_picker.dart

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,24 @@ class _FormBuilderFilePickerState extends State<FormBuilderFilePicker> {
115115
Container(
116116
margin: EdgeInsets.only(right: 2),
117117
child: (key.contains('.jpg') ||
118-
key.contains('.jpeg') ||
119-
key.contains('.png'))
118+
key.contains('.jpeg') ||
119+
key.contains('.png'))
120120
? 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+
)
126126
: 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+
),
136136
),
137137
if (!_readonly)
138138
InkWell(
@@ -175,8 +175,8 @@ class _FormBuilderFilePickerState extends State<FormBuilderFilePicker> {
175175
.checkPermissionStatus(PermissionGroup.storage);
176176
if (permission != PermissionStatus.granted) {
177177
Map<PermissionGroup, PermissionStatus> permissions =
178-
await PermissionHandler()
179-
.requestPermissions([PermissionGroup.storage]);
178+
await PermissionHandler()
179+
.requestPermissions([PermissionGroup.storage]);
180180
if (permissions[PermissionGroup.storage] != PermissionStatus.granted)
181181
throw new Exception("Permission not granted");
182182
}

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
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.
33
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
66

77
environment:
8-
sdk: ">=2.1.0 <3.0.0"
8+
sdk: ">=2.5.0 <3.0.0"
99

1010
dependencies:
1111
flutter:

0 commit comments

Comments
 (0)