-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[camera] Add web support #4240
[camera] Add web support #4240
Conversation
I'm going to use this to publish a demo version of the camera_web |
Published here! https://dit-vgv-camera-test.web.app There's something weird going on with the orientation of the preview in my machine. It seems to be preferring a portrait camera rather than landscape in my laptop. Also in my phone the external camera is flipped, when it probably shouldn't? Not sure, but it's a start!! :D |
Same issue. Works great but I can't figure out how to force it to landscape on web. |
…4239) * chore: update camera_platform_interface to 2.1.0 * feat: add pause to Camera * test: add Camera pause test * feat: add pausePreview and resumePreview implementation * test: add pausePreview and resumePreview tests
…n uncaught exception
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bselwe I've updated this branch slightly, please remember to pull changes! |
OK, so I've deployed the latest changes to https://dit-vgv-camera-test.web.app, and now there's only one thing that bugs me slightly: the preview does not really give users a clue of what's the orientation of the camera when the photo is taken. This is especially true in mobile phones (where the preview is landscape, but the photo taken is normally in portrait mode). However, I think this is an issue with the example app itself, rather than the plugin itself. For now, I don't think this is a release blocker, so we probably should publish the first version of the camera plugin asap, and get it in the hands of the people :) (well, more people, at least!) |
@ditman Hm, it seems that the published demo behaves differently than when running locally. Not sure but it might be that the published version did not include some of the latest PRs/fixes. Rebased with master and reverted one unnecessary fix. |
@bselwe I've deployed the latest demo, and everything that has been merged so far, here: https://dit-vgv-camera-test.web.app (Verified it contains up to "don't flip the preview on external cameras") PS: You might need to refresh a few times so the new service worker (and app) kicks in :) |
This needs to be rebased one last time after #4358 lands, so we only merge code changes in the |
This looks good, but I'm not endorsing a plugin at 7:30PM of a Friday, next week :P |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's go!
* feat: add web to the example app * docs: update README and point users to camera_web for more web-specific info.
* master: (51 commits) [webview_flutter] Update version number app_facing package (flutter#4375) [webview_flutter] Adjust integration test domains (flutter#4383) Remove some trivial custom analysis options files (flutter#4379) [google_maps_flutter_platfomr_interface] Add Marker drag events (flutter#2653) [flutter_plugin_tools] Improve version check error handling (flutter#4376) [flutter_plugin_tools] Allow overriding breaking change check (flutter#4369) [url_launcher] Error handling when URL cannot be parsed with Uri.parse (flutter#4365) [webview_flutter] Migrate main package to fully federated architecture. (flutter#4366) [google_sign_in] Bump minimum Flutter version and iOS deployment target (flutter#4334) Add false secret lists, and enforce ordering (flutter#4372) [camera_web] Update usage documentation (flutter#4371) [video_player] VTT Support (flutter#2878) Require authors file (flutter#4367) [flutter_plugin_tools] Fix federated safety check (flutter#4368) [webview_flutter] Extract WKWebView implementation into a separate package (flutter#4345) [webview_flutter] Extract Android implementation into a separate package (flutter#4343) [in_app_purchase] Ensure the `introductoryPriceMicros` field is populated correctly. (flutter#4364) [flutter_plugin_tools] Add a federated PR safety check (flutter#4329) [camera] Add web support (flutter#4240) [webview_flutter] Bump minimum Flutter version and iOS deployment target (flutter#4361) ... # Conflicts: # packages/webview_flutter/webview_flutter/lib/platform_interface.dart # packages/webview_flutter/webview_flutter/lib/src/webview_method_channel.dart # packages/webview_flutter/webview_flutter/lib/webview_flutter.dart
* feat: add web to the example app * docs: update README and point users to camera_web for more web-specific info.
Adds web support to the camera plugin.
example
app, following the instructions of the web package.TODO
camera_web
plugin.camera
version (pubspec.yaml) and CHANGELOG.md.Part of flutter/flutter#45297.
Pre-launch Checklist
dart format
.)[shared_preferences]
///
).