Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
73eeb30
[image_picker] use LocalizedString to fix lint error. (#3349)
Dec 18, 2020
b6af039
[connectivity] Clear networkCallback object as soon as stream is canc…
ened Dec 18, 2020
b1ab21a
[local_auth] Update README for Android Integration (#3348)
ditman Dec 18, 2020
debfbec
Fix outdated links across a number of markdown files (#3276)
kevmoo Dec 18, 2020
22422af
[camera] Flash functionality for Android and iOS (#3314)
BeMacized Dec 19, 2020
0c6ed04
Add implementation of didFinishProcessingPhoto callback (#3337)
mvanbeusekom Dec 19, 2020
b289e1a
[camera] Zoom functionality for Android and iOS (#3315)
mvanbeusekom Dec 19, 2020
b4466e7
Fix test exclusion logic for nnbd plugins (#3342)
amirh Dec 20, 2020
c986058
[video_player] Fix video player test (#3361)
Dec 21, 2020
8980d79
[image_picker] Do not copy a static field into another static field (…
mehmetf Dec 21, 2020
0f1c20d
[url_launcher] forceSafariVC should be nullable to avoid breaking cha…
mehmetf Dec 21, 2020
5708731
Fix documentation (#3362)
mvanbeusekom Dec 22, 2020
7bc9aa2
Make sure saveTo returns a Future (#3363)
mvanbeusekom Dec 22, 2020
01771bf
add check for duration is CMTIME_IS_INDEFINITE
nathanaelneveux Dec 21, 2020
ab6cd05
updated changelog and version
nathanaelneveux Dec 22, 2020
622ba57
[camera] Add implementations for the torch flash mode. (#3338)
BeMacized Dec 22, 2020
a9513d5
[camera] Fix flash/torch not working on some Android devices. (#3367)
BeMacized Dec 24, 2020
7eff062
[camera] Fix video recording exception on Android (#3375)
BeMacized Dec 27, 2020
3ec0d64
[camera] Added maxVideoDuration to startVideoRecording (#3365)
danielroek Dec 28, 2020
1c00905
[camera_platform_interface] Add platform interface methods for settin…
BeMacized Dec 28, 2020
65d041f
Update camera_platform_interface to 1.2.0 (#3376)
mvanbeusekom Dec 29, 2020
72cc8e2
Change platform interface dependency (#3377)
BeMacized Dec 29, 2020
96e2328
[camera] Add iOS and Android implementations for managing auto exposu…
BeMacized Dec 30, 2020
cfa7098
Added closeCaptureSession() to stopVideoRecording in Camera.java to f…
anniek-valk Dec 31, 2020
16f37e9
[camera_platform_interface] Added imageFormatGroup to initialize (#3364)
danielroek Jan 5, 2021
0394183
[camera] Fixed stale images in imageStream subscriptions (#3344)
danielroek Jan 5, 2021
b64bebf
[camera] disable auto focus when using front facing camera on Android…
mvanbeusekom Jan 5, 2021
dac4b6f
[camera_platform_interface] Add platform interface methods for settin…
BeMacized Jan 6, 2021
43ee609
[camera_platform_interface] Add platform interface methods for lockin…
BeMacized Jan 7, 2021
d026d07
[camera] set useAutoFocus to true by default (#3396)
markfili Jan 7, 2021
d0fd4b1
[image_picker] Update README.md (#3098)
amanv8060 Jan 7, 2021
1b7afc5
[in_app_purchase] Added serviceTimeout code (#3287)
impure Jan 7, 2021
a7dd769
Update obsolete button refs in plugin examples (#3395)
HansMuller Jan 7, 2021
13fe070
Update packages/video_player/video_player/ios/Classes/FLTVideoPlayerP…
Salakar Jan 8, 2021
6b0ae4f
Update pubspec version
Salakar Jan 8, 2021
94d9bc0
Merge branch 'master' into issue-48670
Salakar Jan 8, 2021
105c2bc
fix version (#3399)
Jan 8, 2021
d01c84c
Ignore deprecated_member_use analysis lint (#3400)
zanderso Jan 8, 2021
b3bc1f2
[battery] Migrate battery_plugin_interface to null safety (#3366)
bparrishMines Jan 8, 2021
34faaaf
Sync the PR template to the new style (#3397)
Hixie Jan 9, 2021
da1b463
[camera] Implemented ImageStream ImageFormat setting for Dart and And…
danielroek Jan 11, 2021
71a8317
[camera] Add iOS and Android implementations for managing auto focus.…
BeMacized Jan 11, 2021
a0e7937
[google_maps_flutter_platform_interface] Adds support for holes in po…
sanekyy Jan 12, 2021
782a7a9
[video_player] Migrate deprecated api (#3409)
Piinks Jan 13, 2021
4fec227
[battery] Migrate battery to null safety (#3380)
bparrishMines Jan 13, 2021
1eabad7
[file_selector_web] Add initial implementation (#3141)
tugorez Jan 13, 2021
100c747
[camera] Implemented capture orientation locking. Fixed preview rotat…
BeMacized Jan 13, 2021
0434f06
[google_maps_flutter] Adds support for holes in polygon overlays to t…
sanekyy Jan 13, 2021
edda73d
[file_selector_web] Add dummy ios directory. (#3416)
ditman Jan 14, 2021
6d18db8
[camera] Fix picture capture causing a crash on some Huawei devices. …
BeMacized Jan 14, 2021
d0b7109
[camera] Fix initialization error in camera example on iOS (#3406)
BeMacized Jan 14, 2021
980b674
[camera] Fixes crash with using inner camera on some Android devices.…
najeira Jan 14, 2021
5916f55
[camera] Copy zoom settings from preview to final capture builder on …
mvanbeusekom Jan 14, 2021
1e90b58
fix to properly place polyline at initial camera position in example …
klaes-ashford Jan 14, 2021
8313444
[camera] Fixes crash when taking a picture on iOS devices without fla…
mvanbeusekom Jan 14, 2021
cc234f6
[file_selector_platform_interface] Bump the cross_file version (#3422)
tugorez Jan 15, 2021
eccc3cd
[local_auth] Allow device authentication (pin/pattern/passcode) (#2489)
kennethj Jan 15, 2021
e113013
[google_sign_in] Migrate to nnbd (#3329)
mehmetf Jan 15, 2021
d950dda
[script] Update build_all_plugins_app to exclude some plugins in `mas…
ditman Jan 15, 2021
6ee63e8
[google_maps_flutter_web] Support for Holes in Polygons (#3412)
ABausG Jan 16, 2021
5cff819
[google_sign_in, url_launcher] Document unendorsement of web. (#3436)
ditman Jan 16, 2021
faa26ec
[plugin_platform_interface] Use Mockito nnbd (#3437)
Jan 16, 2021
172338d
combine release messages and versions (#3435)
Jan 19, 2021
1a21559
Merge branch 'master' into issue-48670
nathanaelneveux Jan 19, 2021
bea4b14
Add Labeler Github Action (#3433)
bparrishMines Jan 20, 2021
24c3ca5
Update pubspec version
nathanaelneveux Jan 20, 2021
f302473
Windows nullsafety prep (#3442)
stuartmorgan-g Jan 20, 2021
31923c8
[path_provider] Migrate path_provider_windows to nullsafety (#3410)
stuartmorgan-g Jan 21, 2021
07cf89a
[camera] Ensure that channel.invokeMethod runs on the main thread (#3…
jsroest Jan 21, 2021
c923ef8
[google_maps_flutter_web] Reverse Hole winding when needed (#3440)
ABausG Jan 21, 2021
6fa2ead
[google_maps_flutter_platform_interface] add custom tile support (#3418)
Jan 22, 2021
6783cd5
[google_maps_flutter_platform_interface] Fixes for custom tiles (#3449)
Jan 22, 2021
712dcc1
[ci][image_picker]enable xcode 12/iOS 14 for all tasks except lint (#…
Jan 23, 2021
1812428
Revert "[ci][image_picker]enable xcode 12/iOS 14 for all tasks except…
Jan 25, 2021
207d129
bump vmservice (#3463)
dnfield Jan 26, 2021
919eaef
[cross_file] Use Uri when calling package:http methods (#3462)
grouma Jan 26, 2021
ced7fd6
[path_provider] drop uuid (#3465)
dnfield Jan 26, 2021
ca99211
[cross_file] Migrate to null-safety. (#3452)
ditman Jan 26, 2021
98d87d0
[image_picker_platform_interface] fix test asset file location (#3467)
Jan 26, 2021
4aacf97
Revert "[cross_file] Migrate to null-safety. (#3452)" (#3468)
ditman Jan 27, 2021
16f3281
Reland "[cross_file] Migrate to null-safety. (#3452)" (#3469)
ditman Jan 27, 2021
16317ef
refactor FLTCMTimeToMillis
nathanaelneveux Jan 27, 2021
aab17e8
update changlog description
nathanaelneveux Jan 27, 2021
f7f1cae
added test
nathanaelneveux Jan 28, 2021
8f66b2d
[ci] fix ci failure on ios builds (#3470)
Jan 28, 2021
cd358b0
[package_info] Register IntegrationTestPlugin in the example app. (#3…
ditman Jan 29, 2021
07dade4
[integration_test] Fix tests from changes to `flutter test` machine o…
jiahaog Jan 29, 2021
647f698
[url_launcher] Update description in pubspec.yaml (#2858)
mit-mit Jan 29, 2021
8c9ad11
[ci][image_picker][webviews_flutter] enable Xcode 12 (#3461)
Jan 29, 2021
815beaf
[url_launcher_web] Fix Link misalignment issue (#3476)
mdebbar Jan 29, 2021
9764636
Remove amirh from CODEOWNERS (#3484)
amirh Jan 29, 2021
35847e4
[local_auth] Fix incorrect switch fallthrough (#3473)
jiahaog Jan 30, 2021
04b0b4b
[path_provider_windows] Resolve FFI stabilization changes (#3485)
Jan 30, 2021
a16411b
Remove Dart stubs from macOS plugins (#3491)
stuartmorgan-g Feb 1, 2021
31a8b5c
Migrate shared_preferences_platform_interfaces to null safety (#3466)
bparrishMines Feb 2, 2021
30721be
Automatically add platform labels (#3487)
stuartmorgan-g Feb 2, 2021
a87497f
Add plugin issue query to README (#3493)
stuartmorgan-g Feb 2, 2021
a455576
[camera] Fix example reference in camera's doc (#3472)
AlexV525 Feb 2, 2021
59086bd
Revert compileSdkVersion to 29 (#3496)
mvanbeusekom Feb 2, 2021
a65d350
Remove cyanglaz from some package code owners (#3495)
Feb 2, 2021
42d5325
Run pub global activate before pub global run (#3502)
Feb 3, 2021
9e1d573
Run activate before run (#3506)
Feb 3, 2021
782b057
[path_provider] Update macOS for NNBD (#3498)
stuartmorgan-g Feb 3, 2021
61118a7
[path_provider_linux] Migrate to null safety (#3330)
yash1200 Feb 3, 2021
47a5ea7
fix google_maps_flutter_platform_interface version (#3500)
Feb 3, 2021
37d658e
[google_maps_flutter] add tile overlays (#3434)
Feb 3, 2021
956b1eb
Merge upcoming camera updates (#3501)
bparrishMines Feb 4, 2021
41be560
[shared_preferences] Update macOS for NNBD (#3505)
stuartmorgan-g Feb 4, 2021
e51dd67
Clean up CODEOWNERS (#3438)
Feb 4, 2021
546d6c1
update versino (#3512)
Feb 4, 2021
342d010
Add a note about Plus plugins to CONTRIBUTING.md (#3511)
stuartmorgan-g Feb 4, 2021
caf7fbf
[in_app_purchases] Remove TypeMatcher reference (#3494)
Piinks Feb 4, 2021
7301aa1
Remove stray dependency (#3515)
Feb 4, 2021
9e982cf
[image_picker_platform_interface] migrate to nnbd (#3492)
Feb 4, 2021
60fa979
[package_info] Migrate to null safety (#3398)
bparrishMines Feb 4, 2021
7f5696c
Migrate path_provider to null safety. (#3460)
bparrishMines Feb 5, 2021
ad308e5
Update to ffi 0.3.0-nullsafety.1 (#3513)
Feb 5, 2021
5aa082f
[wifi_info_flutter] Check Permissions in Android O or higher (#3234)
hamdikahloun Feb 5, 2021
654a025
[camera_platform_interface] Added stopRecordingVideo (#3518)
danielroek Feb 6, 2021
aa827e3
[camera] Clockwise rotation of focus point in android (#3458)
tinyc0der Feb 6, 2021
0cec317
[shared_preferences_windows]-Migrate to null safety (#3516)
sameeerkashyap Feb 8, 2021
3d70464
[image_picker] Migrate to null-safety (#3524)
sameeerkashyap Feb 8, 2021
7adfc2f
[file_selector_platform_interface] File selector nnbd (#3509)
SirusCodes Feb 8, 2021
2b6addf
[shared_preferences] Migrate platform plugins to null-safety (#3523)
gaetschwartz Feb 8, 2021
545c97f
[camera_platform_interface] Migrate to null safety (#3497)
mvanbeusekom Feb 8, 2021
8d2594d
[ios_platform_images] Migrate to null safety (#3381)
bparrishMines Feb 8, 2021
cf49441
[file_selector_web] Fix typo in pubspec. (#3528)
ditman Feb 8, 2021
e68b15f
[sensors] Migrate to null safety (#3423)
bparrishMines Feb 9, 2021
bb21db8
[quick_actions] Migrate to null safety (#3421)
bparrishMines Feb 9, 2021
46207ea
[video_player]: Fix texture unregistration callback signature
shihchanghsiungsonos Feb 9, 2021
847749a
[wifi_info_flutter] Migrate the platform interface to null safety (#3…
bparrishMines Feb 9, 2021
f217be7
[url_launcher] Fix PlatformException introduced in nnbd release (#3333)
nohli Feb 9, 2021
5e87faf
Add section about how to use Material components in an app using WebV…
Feb 9, 2021
44b4b54
Add plugin tools as a git submodule and depend on it directly (#3527)
Feb 9, 2021
ea19ea8
[shared_preferences] Migrate main package to null-safety (#3526)
gaetschwartz Feb 9, 2021
e50f179
Update video_player_platform_interface to latest pigeon (#3507)
Hixie Feb 9, 2021
b4378ce
[share] Update README.md (#3300)
kabagouda Feb 9, 2021
ca25038
Removed obsolete example folder from camera root (#3503)
mvanbeusekom Feb 9, 2021
2919660
[camera_platform_interface] Migrate to null safety (#3530)
mvanbeusekom Feb 9, 2021
09d0f79
Update pubspecs (#3534)
mit-mit Feb 10, 2021
7624d9e
add post merge labeler (#3532)
bparrishMines Feb 10, 2021
31a631c
[wifi_info_flutter] Migrate to null safety (#3425)
bparrishMines Feb 12, 2021
acabfe6
Bump ffi dependencies (#3540)
Feb 12, 2021
99d599c
Added comment about path depenendencies (#3542)
jonasfj Feb 12, 2021
197d976
[android_alarm_manager] Migrated android_alarm_manager to support nul…
thisisamank Feb 12, 2021
e026242
Move plugin tools code (#3544)
Feb 12, 2021
c7b9a24
[image_picker_web] Migrate to null-safety (#3535)
sameeerkashyap Feb 12, 2021
aa22656
Honor, and scrub, the 1.0 compatibility promise (#3545)
stuartmorgan-g Feb 13, 2021
10b40dd
Update video_player_web to point to new video_player_interface (#3536)
Hixie Feb 13, 2021
b3369c3
[google_maps_flutter] Migrate platform interface to null safety (#3539)
stuartmorgan-g Feb 14, 2021
d054fa9
Enable CI tests on beta (#3538)
stuartmorgan-g Feb 15, 2021
57a40bf
[camera] Fixes crash on takePicture() (#3537)
hemanthrajdc Feb 15, 2021
7e9c79b
[camera] NNBD migration of the camera plugin (#3533)
mvanbeusekom Feb 15, 2021
907d8d3
Fix the build-all exclusion list (#3552)
stuartmorgan-g Feb 16, 2021
9136b68
[path_provider] Update Windows implementation version (#3541)
stuartmorgan-g Feb 16, 2021
7a3b4ae
[google_maps_flutter] Fix CameraPosition regression (#3547)
stuartmorgan-g Feb 16, 2021
4df0880
[url_launcher_web] Migrate to null-safety (#3522)
ditman Feb 16, 2021
95f856e
[file_selector_web] update documentation #76067 (#3554)
bharat-biradar Feb 16, 2021
aaabec0
Remove iOS stubs (#3490)
stuartmorgan-g Feb 17, 2021
6d8ea78
[url_launcher] Re-endorse web implementation. (#3557)
ditman Feb 17, 2021
cbee856
Document how to use pigeon and update to the latest version. (#3281)
Hixie Feb 17, 2021
cb309bc
Publish check (#3556)
bparrishMines Feb 17, 2021
bf57107
Update video_player readme to change sample video to https (#3546)
jeremiahlukus Feb 18, 2021
361567b
[camera] Added timeout to Android pre-capture sequence (#3558)
mvanbeusekom Feb 18, 2021
f784207
Publish check ignores prerelease sdk (#3560)
bparrishMines Feb 18, 2021
73a75b8
Migrate plugin_platform_interface to v2 stable, null-safe (#3543)
kevmoo Feb 18, 2021
f125331
[shared_preferences] fix crash when list type is dynaimc (#3565)
Feb 18, 2021
4290d18
[webview_flutter] Support for loading progress tracking (#2151)
jeremie-movify Feb 18, 2021
d2c011f
[shared_preferences] Migrate examples to NNBD (#3564)
stuartmorgan-g Feb 19, 2021
fa95cde
[video_player_web] Ignore mixWithOthers option (#3561)
llucax Feb 19, 2021
982e1ca
[path_provider] Migrate examples to null-safety (#3559)
stuartmorgan-g Feb 19, 2021
e8b38f6
[image_picker_for_web] Add doc comments to point out that some argume…
ditman Feb 19, 2021
849f258
[google_maps_flutter] Migrate to NNBD (#3548)
stuartmorgan-g Feb 19, 2021
2315531
[url_launcher] Bump platform interface package to stable NNBD (#3570)
stuartmorgan-g Feb 19, 2021
0638189
[in_app_purchase] Migrate to NNBD (#3555)
Feb 19, 2021
6c10217
[path_provider] Bump platform interface package to stable NNBD (#3568)
stuartmorgan-g Feb 19, 2021
797a908
Merge branch 'master' into issue-48670
nathanaelneveux Feb 19, 2021
51c6eac
[flutter_plugin_android_lifecycle] Bump version for NNBD stable (#3569)
stuartmorgan-g Feb 19, 2021
72cbcac
[package_info] Bump version for NNBD stable (#3571)
stuartmorgan-g Feb 19, 2021
4f31f3f
[image_picker_platform_interface] Bump NNBD version to stable (#3573)
Feb 19, 2021
5817241
[flutter_plugin_android_lifecycle-sdk] Update Flutter SDK constraint
stuartmorgan-g Feb 19, 2021
8e38935
[path_provider] Bump platform packages to NNBD stable (#3575)
stuartmorgan-g Feb 19, 2021
f6c2ed4
[image_picker] use nnbd version of deps to resolve ci failure (#3580)
Feb 19, 2021
127c772
[image_picker] NNBD stable (#3579)
Feb 20, 2021
f69e7dd
[url_launcher] Fix SDK copypasta (#3583)
stuartmorgan-g Feb 20, 2021
29c9d1c
[camera] Solves delay when using the zoom feature on iOS. (#3562)
mvanbeusekom Feb 20, 2021
0e3e177
migrate connectivity platform interface to stable (#3585)
Feb 20, 2021
a8d1a3a
[shared_preferences] Bump version for NNBD stable (#3586)
stuartmorgan-g Feb 20, 2021
90c0e90
[battery] Bump platform version to NNBD stable (#3587)
stuartmorgan-g Feb 20, 2021
9d00dd2
[sensors] Update to NNBD stable (#3589)
stuartmorgan-g Feb 20, 2021
e8c8cf6
[connectivity_macos] move NNBD to stable (#3588)
Feb 22, 2021
d3ab071
[cross_file] Stable null safety release (#3593)
mvanbeusekom Feb 22, 2021
1baec7a
[shared_preferences] Bump platform versions to NNBD stable (#3595)
stuartmorgan-g Feb 22, 2021
6c57e87
[url_launcher] Update platforms to NNBD stable (#3584)
stuartmorgan-g Feb 22, 2021
f14eaec
[battery] Bump version for NNBD stable (#3594)
stuartmorgan-g Feb 22, 2021
bb3fc5a
[path_provider] Update to stable NNBD (#3582)
stuartmorgan-g Feb 22, 2021
b98d725
[connectivity_macos] fix version (#3599)
Feb 22, 2021
0838c82
[google_maps_flutter] Bump platform interface version for NNBD stable…
stuartmorgan-g Feb 22, 2021
61a736f
[device_info_platform_interface] null safety stable release (#3597)
Feb 22, 2021
0ea8ef8
[share] Bump version for NNBD stable (#3600)
stuartmorgan-g Feb 22, 2021
3996449
[android_intent] Bump version for NNBD stable (#3601)
stuartmorgan-g Feb 22, 2021
5f29f9e
[shared_preferences] Bump app-facing version for NNBD stable (#3602)
stuartmorgan-g Feb 22, 2021
f2696d5
[connectivity_macos] fix flutter version constraint (#3604)
Feb 22, 2021
774d623
[url_launcher] Bump app-facing version for NNBD stable (#3603)
stuartmorgan-g Feb 22, 2021
d4480fb
[android_intent] Fix Flutter SDK version (#3607)
stuartmorgan-g Feb 23, 2021
ab8fb51
[file_selector_platform_interface] null safety stable release (#3605)
ditman Feb 23, 2021
af50af7
[connectivity] null safety stable release (#3596)
Feb 23, 2021
e21952a
[video_player_platform_interface] Bump version for NNBD stable (#3578)
ditman Feb 23, 2021
f47dbdf
[android_alarm_manager] Bump version for NNBD stable (#3608)
stuartmorgan-g Feb 23, 2021
f081633
[local_auth] Bump version for NNBD stable (#3615)
stuartmorgan-g Feb 23, 2021
bba5543
quick action stable (#3618)
Feb 23, 2021
082efa8
[ios_platform_images] Bump version for stable NNBD (#3616)
stuartmorgan-g Feb 23, 2021
b45875f
[espresso] Update SDK requirement for null-safety (#3614)
stuartmorgan-g Feb 23, 2021
34d0aa5
[google_maps_flutter] fixed a small bug in example app. (#3590)
vishnuagbly Feb 23, 2021
36a1457
[google_sign_in_web] Ignore analyzer checks in generated files. (#3622)
ditman Feb 23, 2021
7413abf
[google_sign_in] Bump platform interface version for NNBD stable (#3617)
stuartmorgan-g Feb 23, 2021
73aefe6
[shared_preferences] Removed deprecated AsyncTask API (#3481)
SirusCodes Feb 23, 2021
bc355f1
[webview_flutter] release null safety to stable(#3619)
Feb 23, 2021
a2cb894
[wifi_info_flutter_platform_interface] null safety stable release (#3…
Feb 23, 2021
bd88615
[camera] Fix example from README.md (#3592)
mvanbeusekom Feb 23, 2021
3b42025
[device_info_platform_interface] handle null value from method channe…
Feb 23, 2021
07e37f5
[google_maps_flutter] Bump app-facing version for NNBD stable (#3623)
stuartmorgan-g Feb 23, 2021
29c3f1f
[video_player_web] Bump version for NNBD stable (#3574)
ditman Feb 23, 2021
2200738
[video_player] Bump app-facing version for NNBD stable (#3624)
stuartmorgan-g Feb 24, 2021
f42e6c3
[url_launcher] Update result to `True` when the url was loaded succes…
lidongze91 Feb 24, 2021
499156e
[quick_action] fix delegate methods not called on iOS (#3621)
Feb 25, 2021
96faf2c
[file_selector_web] Migrated to null-safety (#3550)
SirusCodes Feb 25, 2021
8201637
[device_info] null safety stable (#3626)
Feb 25, 2021
494e9f9
[file_selector] Return a non-null value from getSavePath on web (#3630)
stuartmorgan-g Feb 25, 2021
98e289b
[cross_file] Fix base class nullability (#3629)
stuartmorgan-g Feb 25, 2021
bc11bad
[in_app_purchase] Add support for InApp subscription upgrade/downgrad…
rahulraj64 Feb 25, 2021
a109b3c
[wifi_info_flutter] null safety stable (#3627)
Feb 25, 2021
fff1420
[camera_platform_interface] Stable null safety release. (#3610)
mvanbeusekom Feb 25, 2021
1de6d96
[file_selector] Migrate to null safety (#3631)
stuartmorgan-g Feb 25, 2021
a03b66f
embedded_views_preview not required since v1.0.0 (#3625)
Feb 25, 2021
eab2552
Fix typo in image_picker_for_web README.md (#2835)
lrhn Feb 25, 2021
f614980
[url_launcher] Added a note to the README (#2031)
kalkotekedar Feb 25, 2021
cb64042
Make executor an instance property (#3633)
Feb 25, 2021
a0d99ee
[google_sign_in_web] Migrate to null-safety (#3628)
ditman Feb 25, 2021
7668398
[google_sign_in] Bump app-facing version for NNBD stable (#3637)
stuartmorgan-g Feb 26, 2021
ad650f9
[file_selector] Endorse web (#3643)
stuartmorgan-g Feb 26, 2021
aead5ac
[extension_google_sign_in_as_googleapis_auth] Migrate to null safety …
stuartmorgan-g Feb 26, 2021
4afca62
Fix Cirrus script for firebase testlab tests (#3634)
stuartmorgan-g Feb 26, 2021
4b4913c
[file_selector_platform_interface]: Verify that extensions don't have…
tugorez Feb 26, 2021
c1c4514
[image_picker_for_web] Bump version for NNBD stable (#3635)
ditman Feb 26, 2021
a0fe222
[shared_preferences] Don't create additional Handler when method chan…
hoc081098 Feb 27, 2021
4155c43
migrate tests to null safety (#3645)
Mar 1, 2021
c42db71
Update pull_request_label.yml (#3647)
Mar 1, 2021
e2f6603
Merge branch 'master' into issue-48670
nathanaelneveux Mar 1, 2021
2492b1d
Merge branch 'issue-48670' of https://github.com/nathanaelneveux/flut…
Mar 8, 2021
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
Prev Previous commit
Next Next commit
[file_selector] Migrate to null safety (flutter#3631)
Migrates the app-facing package to null safety. Includes replacing Mockito with a custom fake/mock.

Fixes an issue where the example didn't handle dialogs being canceled, which was highlighted by the NNBD migration. (Previously, they would cause null assertions at runtime, which wasn't noticed during development. NNBD for the win!)

Fixes flutter/flutter#75235
  • Loading branch information
stuartmorgan-g authored Feb 25, 2021
commit 1de6d96f5b06b0657a21680a2a55a77b1be95808
4 changes: 4 additions & 0 deletions packages/file_selector/file_selector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.0

Migrate to null safety.

## 0.7.0+2

* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ import 'package:flutter/material.dart';
class GetDirectoryPage extends StatelessWidget {
void _getDirectoryPath(BuildContext context) async {
final String confirmButtonText = 'Choose';
final String directoryPath = await getDirectoryPath(
final String? directoryPath = await getDirectoryPath(
confirmButtonText: confirmButtonText,
);
if (directoryPath == null) {
// Operation was canceled by the user.
return;
}
await showDialog(
context: context,
builder: (context) => TextDisplay(directoryPath),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class OpenImagePage extends StatelessWidget {
extensions: ['jpg', 'png'],
);
final List<XFile> files = await openFiles(acceptedTypeGroups: [typeGroup]);
if (files.isEmpty) {
// Operation was canceled by the user.
return;
}
final XFile file = files[0];
final String fileName = file.name;
final String filePath = file.path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class OpenMultipleImagesPage extends StatelessWidget {
jpgsTypeGroup,
pngTypeGroup,
]);
if (files.isEmpty) {
// Operation was canceled by the user.
return;
}
await showDialog(
context: context,
builder: (context) => MultipleImagesDisplay(files),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class OpenTextPage extends StatelessWidget {
label: 'text',
extensions: ['txt', 'json'],
);
final XFile file = await openFile(acceptedTypeGroups: [typeGroup]);
final XFile? file = await openFile(acceptedTypeGroups: [typeGroup]);
if (file == null) {
// Operation was canceled by the user.
return;
}
final String fileName = file.name;
final String fileContent = await file.readAsString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class SaveTextPage extends StatelessWidget {
final TextEditingController _contentController = TextEditingController();

void _saveFile() async {
final String path = await getSavePath();
String? path = await getSavePath();
if (path == null) {
// Operation was canceled by the user.
return;
}
final String text = _contentController.text;
final String fileName = _nameController.text;
final Uint8List fileData = Uint8List.fromList(text.codeUnits);
Expand Down
57 changes: 1 addition & 56 deletions packages/file_selector/file_selector/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
name: example
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: ">=2.12.0-259.9.beta <3.0.0"

dependencies:
flutter:
Expand All @@ -32,52 +20,9 @@ dependencies:
# the parent directory to use the current plugin's version.
path: ../

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3

dev_dependencies:
flutter_test:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
30 changes: 15 additions & 15 deletions packages/file_selector/file_selector/lib/file_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export 'package:file_selector_platform_interface/file_selector_platform_interfac
show XFile, XTypeGroup;

/// Open file dialog for loading files and return a file path
Future<XFile> openFile({
List<XTypeGroup> acceptedTypeGroups,
String initialDirectory,
String confirmButtonText,
Future<XFile?> openFile({
List<XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[],
String? initialDirectory,
String? confirmButtonText,
}) {
return FileSelectorPlatform.instance.openFile(
acceptedTypeGroups: acceptedTypeGroups,
Expand All @@ -23,9 +23,9 @@ Future<XFile> openFile({

/// Open file dialog for loading files and return a list of file paths
Future<List<XFile>> openFiles({
List<XTypeGroup> acceptedTypeGroups,
String initialDirectory,
String confirmButtonText,
List<XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[],
String? initialDirectory,
String? confirmButtonText,
}) {
return FileSelectorPlatform.instance.openFiles(
acceptedTypeGroups: acceptedTypeGroups,
Expand All @@ -34,11 +34,11 @@ Future<List<XFile>> openFiles({
}

/// Saves File to user's file system
Future<String> getSavePath({
List<XTypeGroup> acceptedTypeGroups,
String initialDirectory,
String suggestedName,
String confirmButtonText,
Future<String?> getSavePath({
List<XTypeGroup> acceptedTypeGroups = const <XTypeGroup>[],
String? initialDirectory,
String? suggestedName,
String? confirmButtonText,
}) async {
return FileSelectorPlatform.instance.getSavePath(
acceptedTypeGroups: acceptedTypeGroups,
Expand All @@ -48,9 +48,9 @@ Future<String> getSavePath({
}

/// Gets a directory path from a user's file system
Future<String> getDirectoryPath({
String initialDirectory,
String confirmButtonText,
Future<String?> getDirectoryPath({
String? initialDirectory,
String? confirmButtonText,
}) async {
return FileSelectorPlatform.instance.getDirectoryPath(
initialDirectory: initialDirectory, confirmButtonText: confirmButtonText);
Expand Down
15 changes: 7 additions & 8 deletions packages/file_selector/file_selector/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: file_selector
description: Flutter plugin for opening and saving files.
homepage: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector
version: 0.7.0+2
version: 0.8.0

dependencies:
flutter:
sdk: flutter
file_selector_platform_interface: ^1.0.0
file_selector_platform_interface: ^2.0.0

dev_dependencies:
flutter_test:
sdk: flutter
test: ^1.3.0
mockito: ^4.1.1
plugin_platform_interface: ^1.0.0
pedantic: ^1.8.0
test: ^1.16.3
plugin_platform_interface: ">=1.0.0 <3.0.0"
pedantic: ^1.10.0

environment:
sdk: ">=2.1.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5"
sdk: ">=2.12.0-259.9.beta <3.0.0"
flutter: ">=1.20.0"
Loading