PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, July 27, 2022

[FIXED] How can the user crop the picture completely freely

 July 27, 2022     crop, dart, flutter, image, react-image-crop     No comments   

Issue

I have a question about the image_cropper plugin... I want the user to be able to crop the photo himself and not have to use the preset options (3:2, 4:3, 16:9, ...), but I find no instructions how this works. I've seen it work on the internet, but I don't know how.

These are the possibilities that you can use up to now, but I want the user to be able to decide completely freely:

 aspectRatioPresets: [
        CropAspectRatioPreset.square,
        CropAspectRatioPreset.ratio3x2,
        CropAspectRatioPreset.original,
        CropAspectRatioPreset.ratio4x3,
        CropAspectRatioPreset.ratio16x9
      ],

Does anyone know how it works?


Solution

Replace the the androidUiSettings with:

androidUiSettings: AndroidUiSettings(
          toolbarColor: Colors.yellow,
          toolbarTitle: 'Bild zuschneiden',
          initAspectRatio: CropAspectRatioPreset.original,
          lockAspectRatio: false),


Answered By - simi
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing