opt image crop

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-26 09:56:11 +08:00
parent 33c8d69a58
commit a799b15155
3 changed files with 77 additions and 64 deletions

View File

@@ -149,7 +149,7 @@ abstract class CommonRichTextPubPageState<T extends CommonRichTextPubPage>
Future<void> onCropImage(int index) async {
late final colorScheme = ColorScheme.of(context);
CroppedFile? croppedFile = await ImageCropper().cropImage(
CroppedFile? croppedFile = await ImageCropper.platform.cropImage(
sourcePath: pathList[index],
uiSettings: [
AndroidUiSettings(