Comments (20)
I think 2 is good, and easy to implement, but I cannot tell whether 1 is supported, and what is 3 for?
from flutter_wechat_camera_picker.
Hey @AlexV525,
3 is primarily for UX.
For example, the user needs to shoot a new profile image in a social network (like instagram), the end result of the profile image is going to be circle in the front end, but right now the user doesn't know which part of the image will be taken off because there is no indication in the camera view that the image is circle.
The same with a square image.
Hope you understand,
Thanks!
from flutter_wechat_camera_picker.
A croppable image, right? I didn't use ins a lot, but shouldn't the circle or the mask be provided after the photo has been taken? (For image cropping you can head over to https://github.com/fluttercandies/flutter_image_editor)
from flutter_wechat_camera_picker.
@AlexV525,
The package you mentioned is not supporting video unfortunately,
And in my opinion, it is really nice from a user perspective that the image/video you've taken is shown like the end result will be.
I already have a cropping mechanism for images and videos, all I need is a mask just for letting the user know that the image/video will be square/circle.
from flutter_wechat_camera_picker.
Hmm, IMO provide a mask directly is not the best idea, but a customizable builder is reasonable. I'll consider it later.
from flutter_wechat_camera_picker.
Great! Looking forward to it 👍
from flutter_wechat_camera_picker.
Both these features are available on master. See isAllowPinchToZoom
and foregroundBuilder
.
from flutter_wechat_camera_picker.
Awesome @AlexV525 💯
I'll take a look ASAP.
I would like to add a suggestion if it's fine by you.
Like Instagram, when recording a video while holding the shutter button, swiping up and down is zooming and unzooming.
Is it possible for you to implement as well?
Also looking forward to the double tap to switch cameras feature.
Thanks for everything!
from flutter_wechat_camera_picker.
This is also under development, there are couple features will be added by recent improvements. Stay tuned.
from flutter_wechat_camera_picker.
Also looking forward to the double tap to switch cameras feature.
Because no UI relative changes with the feature, it's enabled by default if there are any cameras that can be switched to.
from flutter_wechat_camera_picker.
Appreciate it.
For me it's perfect that it's enabled by default.
But maybe worth adding a doubleTapToSwitchCamerasEnabled
property to give the option to disable it.
Thanks again.
from flutter_wechat_camera_picker.
Variants might be changed due to it's only on master. I'll re-considered if it's worth.
from flutter_wechat_camera_picker.
Hey @AlexV525,
Really nice work, I have taken a look and I really like the changes!
A few things worth pointing out:
- You replaced the switch cameras button at the top with a flash toggle (which is great), but I think you should bring the switch cameras button back and put it next to the shoot button.
- The exposure control slider is really nice, but there is a bug when the application is in RTL direction. If I swipe up, the slider goes down and if I swipe down the slider goes up.
- You made the camera preview to fill the whole screen. I don't think it's a good decision because it cuts off the sides of the image to fit the preview into the screen. Only when shooting the photo/video it shows the image with its correct aspect ration. This is a problem because I wanted to put a mask with the
foregroundBuilder
, but it looks super weird because the preview is stretched to fill the screen, so it looks zoomed in.
Hope you will reconsider.
Thank you 👍
from flutter_wechat_camera_picker.
- You made the camera preview to fill the whole screen. I don't think it's a good decision because it cuts off the sides of the image to fit the preview into the screen. Only when shooting the photo/video it shows the image with its correct aspect ration. This is a problem because I wanted to put a mask with the
foregroundBuilder
, but it looks super weird because the preview is stretched to fill the screen, so it looks zoomed in.
That’s how WeChat acts like.
from flutter_wechat_camera_picker.
Currently all your requests are done, as I thought. You can run from master branch again and see if there are more details required to update.
from flutter_wechat_camera_picker.
Hi @AlexV525,
Really nice work!
Thank you.
I have an error when confirming the captured photo/video:
Unhandled Exception: NoSuchMethodError: The getter 'version' was called on null.
DeviceUtils.isLowerThanAndroidQ (package:wechat_camera_picker/src/utils/device_utils.dart:28)
_CameraPickerViewerState.createAssetEntityAndPop.<anonymous closure> (package:wechat_camera_picker/src/widget/camera_picker_viewer.dart:220)
I'm on android 11, Galaxy note20 ultra.
from flutter_wechat_camera_picker.
Try again with the latest commit.
from flutter_wechat_camera_picker.
@AlexV525 Yes that fixes the problem!
One last issue I noticed (sorry lol):
If I zoom in the main camera and then switch to the front camera, the zoom delta is not reset, so if I try to zoom in the front camera, the zoom will jump directly to the last zoom value (from the main camera, before the switch).
Thanks again!
from flutter_wechat_camera_picker.
The more you try, the more feedback I got. Thanks for your experience.
from flutter_wechat_camera_picker.
Cheers @AlexV525 !
Everything is working flawlessly.
I'm closing this issue.
Thanks for all of this.
Looking forward seeing the changes in a stable release soon.
from flutter_wechat_camera_picker.
Related Issues (20)
- [BUG] Get a black screen when resumed app HOT 17
- [BUG] 拍照功能的拍摄界面与照片冻结后的尺寸不同
- [BUG] 拍照后立即拍视频导致拍摄中断 HOT 1
- [BUG] When recording videos, switch the app to the background and cannot stop recording HOT 3
- [BUG] Video record unstable on Realme c17 (continue from #193) HOT 7
- [Proposal] Replace `camera` to some other packages
- [Feature] Shooting can only generate vertical images
- [BUG] 拍照时旋转屏幕,拍照内容也没有旋转 HOT 3
- [BUG] When I use the camera to take a picture, after I tap the confirm button, it asked me to authorize the photo library, it's ridiculous. I just want to use camera, no need to save it to my photo library.
- [BUG] When I use the camera to take a picture, after I tap the confirm button, it asked me to authorize the photo library, it's ridiculous. I just want to use camera, no need to save it to my photo library. HOT 2
- VIVO手机反复进入拍照界面黑屏 HOT 1
- [BUG] camera插件报错,不知升级到最新的版本是否会解决,我看目前使用的是0.10.0
- [BUG] Record button not recording video
- Duplicate onEntitySaving call returned HOT 1
- iOS 相机拍照时会旋转的问题
- [BUG] The capture orientation is wrong in ios 17.0.3 HOT 2
- iOS调起相机报错 HOT 1
- [BUG]更新flutter sdk 到3.16.3之后,打开图片选择器,图片没有预览 HOT 1
- [BUG]没有展示出图片 HOT 2
- The number of apps taking up storage space on mobile phones has skyrocketed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_wechat_camera_picker.