matrix_gesture_detector
이동/회전/스케일 조작을 Matrix4 객체에 매핑하는 제스처 감지기입니다.
이동/회전/스케일 조작을 Matrix4 객체에 매핑하는 제스처 감지기입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
MatrixGestureDetector detects translation, scale and rotation gestures
and combines them into Matrix4 object that can be used by Transform widget
or by low level CustomPainter code. You can customize types of reported
gestures by passing shouldTranslate, shouldScale and shouldRotate
parameters.
The usage is as follows:
MatrixGestureDetector(
onMatrixUpdate: (Matrix4 m, Matrix4 tm, Matrix4 sm, Matrix4 rm) {
setState(() {
matrix = m;
});
},
child: SomeWidgetThatUsesMatrix(
matrix: matrix,
...
)
)
here: SomeWidgetThatUsesMatrix could be a Transform widget
(transform_demo.dart) or a CustomPaint widget which
CustomPainter uses Matrix4 in its low level drawing code
(custom_painter_demo.dart).


의존성 목록 3 개
{"sdk":"flutter"}^2.1.0{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗