v0.0.6circular_motion
원형으로 배치된 위젯을 만들고 원하는 원형 방식으로 회전시키기 위해 스크롤할 수 있는 패키지입니다.
제한된 영역 내에서 원형 목록/운동 스크롤 효과를 생성하기 위한 플러터 패키지입니다.
{"sdk":"flutter"}{"sdk":"flutter"}^3.0.1아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
easy dashboard
This package provides a way to create widgets in a circular position and able to scroll and make them rotate.
API
centerWidget
The centerWidget is the widget that will be in the center of the circular motion.
centerWidget: Text('Center'),
behavior
The behavior is used to control how the gesture should behave during interaction .
behavior: HitTestBehavior.translucent,
speedRunEnabled
The speedRunEnabled is used to determine if after a scroll gesture is completed , the items should rotate in a velocity similar to the gesture . If false the items will not rotate after the gesture is completed . It defaults to true .
speedRunEnabled: true,
Example:
CircularMotion(
centerWidget: Text('Center'),
children: [
Text('0'),
Text('1'),
Text('2'),
Text('3'),
],
)
Example
CircularMotion.builder(
itemCount: 18,
centerWidget: Text('Center'),
builder: (context, index) {
return Text('$index');
}
)
Please feel free to report any issues you face
Also PR's and additional feedback is appreciated
Enjoy 💫