Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to achieve the instagram crop functionality? #40

Closed
Wizzel1 opened this issue Nov 12, 2020 · 1 comment
Closed

How to achieve the instagram crop functionality? #40

Wizzel1 opened this issue Nov 12, 2020 · 1 comment

Comments

@Wizzel1
Copy link

Wizzel1 commented Nov 12, 2020

Hi, first of all, I wanted to thank you for this awesome package!

I am trying to recreate the cropping from Instagram and I am a bit lost, to be honest.

This is my current screen:
1

Currently, the aspect ratio is set to 9/16 but this obviously isn't what I need.

The screen currently looks like this:

Scaffold(
   body: Column( 
       Crop(),
       GridView(),
    )
)

My questions are:

  1. How do I determine the correct aspect ratio to get boundaries like the Instagram cropper?
  2. How would I implement the button that sets the size of the media to full width?

Edit: I would also need to reset the x value of Offset to 0 after an element is dragged. Is there an easy way to do it or do I have to fork the package to do that?

Thanks!

@xclud
Copy link
Owner

xclud commented Nov 24, 2020

Hi @Wizzel1 tahnk you for using crop. I will reach to you soon. Sorry for replying late.

@xclud xclud closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants