extended_image icon indicating copy to clipboard operation
extended_image copied to clipboard

[How to use] editorKey.currentState.rotate() 能否让裁剪框不跟着旋转?

Open cn-ljb opened this issue 7 months ago • 3 comments

Platforms

Android, iOS

Description

editorKey.currentState.rotate() 图像旋转同时裁剪框跟着旋转

My code

step1: ClipRect( child: ExtendedImage( image: ExtendedFileImageProvider(getImage().file, cacheRawData: true), height: widget.width, width: widget.height, extendedImageEditorKey: editorKey, mode: ExtendedImageMode.editor, fit: BoxFit.contain, initEditorConfigHandler: () => EditorConfig( maxScale: 8.0, cropRectPadding: const EdgeInsets.all(20.0), hitTestSize: 20, cropAspectRatio: widget.width / widget.height, ), ), )

step2: editorKey.currentState?.rotate(right: true),

Try do it

No response

cn-ljb avatar Jul 30 '24 08:07 cn-ljb