onScaleEnd method
Implementation
void onScaleEnd(ScaleEndDetails details, ProImageEditorState editor) {
if (editor.selectedLayerIndex < 0) {
editor.layerInteractionManager.showHelperLines = false;
if (_swipeDirection != SwipeMode.none &&
DateTime.now().difference(_swipeStartTime).inMilliseconds < 200) {
if (_swipeDirection == SwipeMode.up) {
_filterSheetAutoAnimation(true, editor);
} else if (_swipeDirection == SwipeMode.down) {
_filterSheetAutoAnimation(false, editor);
}
} else {
if (filterShowHelper < 90) {
_filterSheetAutoAnimation(false, editor);
} else {
_filterSheetAutoAnimation(true, editor);
}
}
filterShowHelper = max(0, min(120, filterShowHelper));
editor.setState(() {});
}
}