extended_image library

Classes

Boundary
CancellationToken
CancellationTokenSource
CropAspectRatios
CupertinoPageTransition
EditActionDetails
EditorConfig
ExtendedAssetBundleImageKey
ExtendedAssetImageProvider
ExtendedExactAssetImageProvider
ExtendedFileImageProvider
ExtendedImage
extended image base on official
ExtendedImageBorderPainter
ExtendedImageEditor
create by zmtzawqlp on 2019/8/22
ExtendedImageEditorState
ExtendedImageGesture
scale idea from https://github.com/flutter/flutter/blob/master/examples/layers/widgets/gestures.dart zoom image
ExtendedImageGesturePageView
page view to support gesture for image
ExtendedImageGesturePageViewState
ExtendedImageGestureState
ExtendedImageProvider
ExtendedImageSlidePage
ExtendedImageSlidePageState
ExtendedImageState
ExtendedMemoryImageProvider
ExtendedNetworkImageProvider
ExtendedRawImage
A widget that displays a dart:ui.Image directly. [...]
ExtendedRenderImage
GestureAnimation
GestureConfig
GestureDetails
HttpClientHelper
RetryHelper
TransparentCupertinoPageRoute<T>
TransparentMaterialPageRoute<T>

Constants

cacheImageFolderName → const String
'cacheimage'
minGesturePageDelta → const double
5.0
minMagnitude → const double
400.0
velocity → const double
minMagnitude / 1000.0

Functions

clampScale(double scale, double min, double max) double
clearDiskCachedImage(String url) Future<bool>
clear the disk cache image then return if it succeed. [...]
clearDiskCachedImages({Duration duration}) Future<bool>
clear the disk cache directory then return if it succeed. [...]
clearGestureDetailsCache() → void
clear the gesture details
clearMemoryImageCache() → void
clear all of image in memory
defaultEditorMaskColorHandler(BuildContext context, bool pointerDown) Color
defaultSlideEndHandler({Offset offset, Size pageSize, SlideAxis pageGestureAxis}) bool
defaultSlidePageBackgroundHandler({Offset offset, Size pageSize, Color color, SlideAxis pageGestureAxis}) Color
ExtendedImageGesturePage
defaultSlideScaleHandler({Offset offset, Size pageSize, SlideAxis pageGestureAxis}) double
doubleCompare(double value, double other, {double precision: precisionErrorTolerance}) int
Compare two double-precision values. Returns an integer that indicates whether value is less than, equal to, or greater than other. [...]
doubleEqual(double value, double other) bool
Returns a value indicating whether two instances of Double represent the same value. [...]
getCachedImageFile(String url) Future<File>
get the local file of the cached image
getCachedSizeBytes() Future<int>
get total size of cached image
getDestinationRect({Rect rect, Size inputSize, double scale: 1.0, BoxFit fit, Alignment alignment: Alignment.center, Rect centerSlice, bool flipHorizontally: false}) Rect
getMemoryImageCache() ImageCache
get ImageCache
getNetworkImageData(String url, {bool useCache: true, StreamController<ImageChunkEvent> chunkEvents}) Future<Uint8List>
get network image data from cached
keyToMd5(String key) String
outRect(Rect rect, Rect destinationRect) bool
extended_image_gesture_utils.dart create by zmtzawqlp on 2019/4/3 [...]
paintExtendedImage({Canvas canvas, Rect rect, Image image, double scale: 1.0, ColorFilter colorFilter, BoxFit fit, Alignment alignment: Alignment.center, Rect centerSlice, ImageRepeat repeat: ImageRepeat.noRepeat, bool flipHorizontally: false, bool invertColors: false, FilterQuality filterQuality: FilterQuality.low, Rect customSourceRect, BeforePaintImage beforePaintImage, AfterPaintImage afterPaintImage, GestureDetails gestureDetails, EditActionDetails editActionDetails, bool isAntiAlias: false}) → void
rotateOffset(Offset input, Offset center, double angle) Offset
rotateRect(Rect rect, Offset center, double angle) Rect
roundAfter(double number, int position) double
typeOf<T>() Type
get type from T

Enums

ActionType
ExtendedImageMode
InitCropRectType
InitialAlignment
init image rect with alignment when initialScale > 1.0 see https://github.com/fluttercandies/extended_image/issues/66
LoadState
SlideAxis
SlideType

Typedefs

AfterPaintImage(Canvas canvas, Rect rect, Image image, Paint paint) → void
BeforePaintImage(Canvas canvas, Rect rect, Image image, Paint paint) bool
rect is render size if return true, it will not paint original image,
BuildGestureImage(GestureDetails gestureDetails) Widget
build Gesture Image
CanMovePage(GestureDetails gestureDetails) bool
whether we can move to previous/next page only for Image
CanScaleImage(GestureDetails details) bool
whether should scale image
CanScrollPage(GestureDetails gestureDetails) bool
whether we can scroll page
DoubleTap(ExtendedImageGestureState state) → void
double tap call back
EditorMaskColorHandler(BuildContext context, bool pointerDown) Color
get editor mask color base on pointerDown
GestureDetailsIsChanged(GestureDetails details) → void
Call when GestureDetails is changed
GestureOffsetAnimationCallBack(Offset offset) → void
animation call back for inertia drag
GestureScaleAnimationCallBack(double scale) → void
animation call back for scale
HeroBuilderForSlidingPage(Widget widget) Widget
build Hero only for sliding page the transform of sliding page must be working on Hero so that Hero animation wouldn't be strange when pop page
ImageBuilderForGesture(Widget image) Widget
build image for gesture, we can handle custom Widget about gesture
InitDestinationRect(Rect initialDestinationRect) → void
return initial destination rect
InitEditorConfigHandler(ExtendedImageState state) EditorConfig
init GestureConfig when image is ready.
InitGestureConfigHandler(ExtendedImageState state) GestureConfig
init GestureConfig when image is ready.
LoadStateChanged(ExtendedImageState state) Widget
extended_image_typedef.dart create by zmtzawqlp on 2019/4/3
MergeEditRect(Rect editRect) Rect
return merged editRect rect
OnSlidingPage(ExtendedImageSlidePageState state) → void
on sliding page
OnTimeout() FutureOr
SlideEndHandler(Offset offset, {ExtendedImageSlidePageState state, ScaleEndDetails details}) bool
if return true ,pop page else reset page state
SlideOffsetHandler(Offset offset, {ExtendedImageSlidePageState state}) Offset
customize offset of page when slide page
SlidePageBackgroundHandler(Offset offset, Size pageSize) Color
build page background when slide page
SlideScaleHandler(Offset offset, {ExtendedImageSlidePageState state}) double
customize scale of page when slide page

Exceptions / Errors

OperationCanceledError