Git Product home page Git Product logo

Comments (20)

AlexV525 avatar AlexV525 commented on September 27, 2024

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.

naamapps avatar naamapps commented on September 27, 2024

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.

AlexV525 avatar AlexV525 commented on September 27, 2024

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.

naamapps avatar naamapps commented on September 27, 2024

@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.

AlexV525 avatar AlexV525 commented on September 27, 2024

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.

naamapps avatar naamapps commented on September 27, 2024

Great! Looking forward to it 👍

from flutter_wechat_camera_picker.

AlexV525 avatar AlexV525 commented on September 27, 2024

Both these features are available on master. See isAllowPinchToZoom and foregroundBuilder.

from flutter_wechat_camera_picker.

naamapps avatar naamapps commented on September 27, 2024

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.

AlexV525 avatar AlexV525 commented on September 27, 2024

This is also under development, there are couple features will be added by recent improvements. Stay tuned.

from flutter_wechat_camera_picker.

AlexV525 avatar AlexV525 commented on September 27, 2024

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.

naamapps avatar naamapps commented on September 27, 2024

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.

AlexV525 avatar AlexV525 commented on September 27, 2024

Variants might be changed due to it's only on master. I'll re-considered if it's worth.

from flutter_wechat_camera_picker.

naamapps avatar naamapps commented on September 27, 2024

Hey @AlexV525,
Really nice work, I have taken a look and I really like the changes!

A few things worth pointing out:

  1. 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.
  2. 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.
  3. 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.

AlexV525 avatar AlexV525 commented on September 27, 2024
  1. 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.

AlexV525 avatar AlexV525 commented on September 27, 2024

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.

naamapps avatar naamapps commented on September 27, 2024

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.

AlexV525 avatar AlexV525 commented on September 27, 2024

Try again with the latest commit.

from flutter_wechat_camera_picker.

naamapps avatar naamapps commented on September 27, 2024

@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.

AlexV525 avatar AlexV525 commented on September 27, 2024

The more you try, the more feedback I got. Thanks for your experience.

from flutter_wechat_camera_picker.

naamapps avatar naamapps commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.