Closed gbbest15 closed 3 years ago
You can implement this by passing true to cacheRawData
property -
ExtendedImage(
color: bright > 0
? Colors.white.withOpacity(bright)
: Colors.black.withOpacity(-bright),
colorBlendMode: bright > 0 ? BlendMode.lighten : BlendMode.darken,
image: ExtendedFileImageProvider(image!, cacheRawData: true), // set this to true
height: MediaQuery.of(context).size.width,
width: MediaQuery.of(context).size.width,
extendedImageEditorKey: editorKey,
mode: ExtendedImageMode.editor,
fit: BoxFit.contain,
initEditorConfigHandler: (ExtendedImageState? state) {
return EditorConfig(
maxScale: 8.0,
cropAspectRatio: cropRatio,
);
},
),
how can i set this to true, i have no idea how to set this.. here is the function