Skip to content

Commit 8daac80

Browse files
feat: Add compatibility with Flutter 3.0.x
1 parent 9c779b8 commit 8daac80

File tree

11 files changed

+155
-256
lines changed

11 files changed

+155
-256
lines changed

.github/workflows/base.yaml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Base
33
on:
44
push:
55
branches: [main]
6+
tags:
7+
- '*'
68

79
pull_request:
810
branches: [main]
@@ -12,6 +14,10 @@ on:
1214
jobs:
1315
build:
1416
runs-on: macos-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
channel: [stable, beta]
1521

1622
steps:
1723
- uses: actions/checkout@v3
@@ -24,8 +30,7 @@ jobs:
2430
- name: Flutter action
2531
uses: subosito/flutter-action@v2
2632
with:
27-
channel: 'stable'
28-
flutter-version: '2.10.5'
33+
channel: ${{ matrix.channel }}
2934

3035
- name: Install dependencies
3136
run: flutter pub get
@@ -35,9 +40,42 @@ jobs:
3540
run: flutter analyze
3641
# - name: Run tests
3742
# run: flutter test
43+
- name: Check publish warnings
44+
run: dart pub publish --dry-run
3845
- name: Build example
3946
run: |
4047
cd example
4148
flutter build appbundle --debug
4249
flutter build ios --debug --no-codesign
4350
flutter build web
51+
52+
- name: Upload coverage to Codecov
53+
if: ${{ matrix.channel == 'stable' }}
54+
uses: codecov/codecov-action@v3
55+
with:
56+
files: coverage/lcov.info
57+
flags: unittests
58+
name: flutter_form_builder
59+
60+
deployment:
61+
if: ${{ github.ref_type == 'tag' }}
62+
needs: build
63+
name: Deploy package
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- name: Configure enviroment
68+
uses: actions/checkout@v3
69+
- name: Download flutter
70+
uses: subosito/flutter-action@v2
71+
with:
72+
channel: 'stable'
73+
- name: Setup pub credentials
74+
shell: bash
75+
env:
76+
PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
77+
PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
78+
run: |
79+
sh ./tool/pub_login.sh
80+
- name: Publish package
81+
run: dart pub publish -v -f

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# form_builder_image_picker
1+
# Form Builder Image Picker
22

3-
Field for picking image(s) from Gallery or Camera for flutter_form_builder package
3+
Field for picking image(s) from Gallery or Camera for flutter_form_builder package
44

55
## Usage
66
```dart
@@ -22,4 +22,12 @@ FormBuilder(
2222
],
2323
),
2424
),
25-
```
25+
```
26+
27+
## Credits
28+
29+
<a href="https://github.com/flutter-form-builder-ecosystem/form_builder_image_picker/graphs/contributors">
30+
<img src="https://contrib.rocks/image?repo=flutter-form-builder-ecosystem/form_builder_image_picker" />
31+
</a>
32+
33+
Made with [contrib.rocks](https://contrib.rocks).

example/pubspec.lock

Lines changed: 28 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4-
archive:
5-
dependency: transitive
6-
description:
7-
name: archive
8-
url: "https://pub.dartlang.org"
9-
source: hosted
10-
version: "3.1.6"
114
async:
125
dependency: transitive
136
description:
147
name: async
158
url: "https://pub.dartlang.org"
169
source: hosted
17-
version: "2.8.2"
18-
boolean_selector:
19-
dependency: transitive
20-
description:
21-
name: boolean_selector
22-
url: "https://pub.dartlang.org"
23-
source: hosted
24-
version: "2.1.0"
10+
version: "2.9.0"
2511
characters:
2612
dependency: transitive
2713
description:
@@ -49,71 +35,40 @@ packages:
4935
name: collection
5036
url: "https://pub.dartlang.org"
5137
source: hosted
52-
version: "1.15.0"
38+
version: "1.16.0"
5339
cross_file:
5440
dependency: transitive
5541
description:
5642
name: cross_file
5743
url: "https://pub.dartlang.org"
5844
source: hosted
5945
version: "0.3.2"
60-
crypto:
61-
dependency: transitive
62-
description:
63-
name: crypto
64-
url: "https://pub.dartlang.org"
65-
source: hosted
66-
version: "3.0.1"
67-
fake_async:
68-
dependency: transitive
69-
description:
70-
name: fake_async
71-
url: "https://pub.dartlang.org"
72-
source: hosted
73-
version: "1.2.0"
74-
file:
75-
dependency: transitive
76-
description:
77-
name: file
78-
url: "https://pub.dartlang.org"
79-
source: hosted
80-
version: "6.1.2"
8146
flutter:
8247
dependency: "direct main"
8348
description: flutter
8449
source: sdk
8550
version: "0.0.0"
86-
flutter_driver:
87-
dependency: transitive
88-
description: flutter
89-
source: sdk
90-
version: "0.0.0"
9151
flutter_form_builder:
92-
dependency: transitive
52+
dependency: "direct main"
9353
description:
9454
name: flutter_form_builder
9555
url: "https://pub.dartlang.org"
9656
source: hosted
97-
version: "7.1.1"
57+
version: "7.3.1"
9858
flutter_lints:
9959
dependency: "direct dev"
10060
description:
10161
name: flutter_lints
10262
url: "https://pub.dartlang.org"
10363
source: hosted
104-
version: "1.0.4"
64+
version: "2.0.1"
10565
flutter_plugin_android_lifecycle:
10666
dependency: transitive
10767
description:
10868
name: flutter_plugin_android_lifecycle
10969
url: "https://pub.dartlang.org"
11070
source: hosted
11171
version: "2.0.4"
112-
flutter_test:
113-
dependency: "direct dev"
114-
description: flutter
115-
source: sdk
116-
version: "0.0.0"
11772
flutter_web_plugins:
11873
dependency: transitive
11974
description: flutter
@@ -126,11 +81,6 @@ packages:
12681
relative: true
12782
source: path
12883
version: "2.0.0"
129-
fuchsia_remote_debug_protocol:
130-
dependency: transitive
131-
description: flutter
132-
source: sdk
133-
version: "0.0.0"
13484
http:
13585
dependency: transitive
13686
description:
@@ -151,26 +101,35 @@ packages:
151101
name: image_picker
152102
url: "https://pub.dartlang.org"
153103
source: hosted
154-
version: "0.8.4+4"
104+
version: "0.8.5+3"
105+
image_picker_android:
106+
dependency: transitive
107+
description:
108+
name: image_picker_android
109+
url: "https://pub.dartlang.org"
110+
source: hosted
111+
version: "0.8.5+1"
155112
image_picker_for_web:
156113
dependency: transitive
157114
description:
158115
name: image_picker_for_web
159116
url: "https://pub.dartlang.org"
160117
source: hosted
161118
version: "2.1.4"
119+
image_picker_ios:
120+
dependency: transitive
121+
description:
122+
name: image_picker_ios
123+
url: "https://pub.dartlang.org"
124+
source: hosted
125+
version: "0.8.5+6"
162126
image_picker_platform_interface:
163127
dependency: transitive
164128
description:
165129
name: image_picker_platform_interface
166130
url: "https://pub.dartlang.org"
167131
source: hosted
168132
version: "2.4.1"
169-
integration_test:
170-
dependency: "direct dev"
171-
description: flutter
172-
source: sdk
173-
version: "0.0.0"
174133
intl:
175134
dependency: transitive
176135
description:
@@ -184,28 +143,21 @@ packages:
184143
name: js
185144
url: "https://pub.dartlang.org"
186145
source: hosted
187-
version: "0.6.3"
146+
version: "0.6.4"
188147
lints:
189148
dependency: transitive
190149
description:
191150
name: lints
192151
url: "https://pub.dartlang.org"
193152
source: hosted
194-
version: "1.0.1"
195-
matcher:
196-
dependency: transitive
197-
description:
198-
name: matcher
199-
url: "https://pub.dartlang.org"
200-
source: hosted
201-
version: "0.12.11"
153+
version: "2.0.0"
202154
material_color_utilities:
203155
dependency: transitive
204156
description:
205157
name: material_color_utilities
206158
url: "https://pub.dartlang.org"
207159
source: hosted
208-
version: "0.1.3"
160+
version: "0.1.4"
209161
meta:
210162
dependency: transitive
211163
description:
@@ -219,28 +171,14 @@ packages:
219171
name: path
220172
url: "https://pub.dartlang.org"
221173
source: hosted
222-
version: "1.8.0"
223-
platform:
224-
dependency: transitive
225-
description:
226-
name: platform
227-
url: "https://pub.dartlang.org"
228-
source: hosted
229-
version: "3.1.0"
174+
version: "1.8.1"
230175
plugin_platform_interface:
231176
dependency: transitive
232177
description:
233178
name: plugin_platform_interface
234179
url: "https://pub.dartlang.org"
235180
source: hosted
236181
version: "2.0.2"
237-
process:
238-
dependency: transitive
239-
description:
240-
name: process
241-
url: "https://pub.dartlang.org"
242-
source: hosted
243-
version: "4.2.4"
244182
sky_engine:
245183
dependency: transitive
246184
description: flutter
@@ -252,49 +190,21 @@ packages:
252190
name: source_span
253191
url: "https://pub.dartlang.org"
254192
source: hosted
255-
version: "1.8.1"
256-
stack_trace:
257-
dependency: transitive
258-
description:
259-
name: stack_trace
260-
url: "https://pub.dartlang.org"
261-
source: hosted
262-
version: "1.10.0"
263-
stream_channel:
264-
dependency: transitive
265-
description:
266-
name: stream_channel
267-
url: "https://pub.dartlang.org"
268-
source: hosted
269-
version: "2.1.0"
193+
version: "1.8.2"
270194
string_scanner:
271195
dependency: transitive
272196
description:
273197
name: string_scanner
274198
url: "https://pub.dartlang.org"
275199
source: hosted
276200
version: "1.1.0"
277-
sync_http:
278-
dependency: transitive
279-
description:
280-
name: sync_http
281-
url: "https://pub.dartlang.org"
282-
source: hosted
283-
version: "0.3.0"
284201
term_glyph:
285202
dependency: transitive
286203
description:
287204
name: term_glyph
288205
url: "https://pub.dartlang.org"
289206
source: hosted
290207
version: "1.2.0"
291-
test_api:
292-
dependency: transitive
293-
description:
294-
name: test_api
295-
url: "https://pub.dartlang.org"
296-
source: hosted
297-
version: "0.4.8"
298208
typed_data:
299209
dependency: transitive
300210
description:
@@ -308,21 +218,7 @@ packages:
308218
name: vector_math
309219
url: "https://pub.dartlang.org"
310220
source: hosted
311-
version: "2.1.1"
312-
vm_service:
313-
dependency: transitive
314-
description:
315-
name: vm_service
316-
url: "https://pub.dartlang.org"
317-
source: hosted
318-
version: "7.5.0"
319-
webdriver:
320-
dependency: transitive
321-
description:
322-
name: webdriver
323-
url: "https://pub.dartlang.org"
324-
source: hosted
325-
version: "3.0.0"
221+
version: "2.1.2"
326222
sdks:
327-
dart: ">=2.14.0 <3.0.0"
328-
flutter: ">=2.5.0"
223+
dart: ">=2.17.0-206.0.dev <3.0.0"
224+
flutter: ">=3.0.0"

0 commit comments

Comments
 (0)