extended_image
extended_image copied to clipboard
[How to use] editorKey.currentState.rotate() 能否让裁剪框不跟着旋转?
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