FLUTTER ECOSYSTEM

lewiseman/circular_motion

제한된 영역 내에서 원형 목록/운동 스크롤 효과를 생성하기 위한 플러터 패키지입니다.

원운동 프로젝트 이미지
Stars
7
Forks
0
최근 푸시(UTC)
2023. 12. 29.
프로젝트 상태
활성
lewiseman GitHub avatar
언어C++CMakeDartHTMLCSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^3.0.1

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Circular Motion

easy dashboard

This package provides a way to create widgets in a circular position and able to scroll and make them rotate.

Any Shape Any Position Customizable
https://raw.githubusercontent.com/lewiseman/assets/master/circular_motion_1.png https://raw.githubusercontent.com/lewiseman/assets/master/circular_motion_2.png https://raw.githubusercontent.com/lewiseman/assets/master/circular_motion_3.png
https://raw.githubusercontent.com/lewiseman/assets/master/circular_motion_vd_1.gif https://raw.githubusercontent.com/lewiseman/assets/master/circular_motion_vd_2.gif https://raw.githubusercontent.com/lewiseman/assets/master/circular_motion_vd_3.gif

The shape of cirlcle will be dependent on the parent widget.

Usage

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,

You can create the circular motion in the following ways:
CircularMotion

Example:

CircularMotion(
    centerWidget: Text('Center'),
    children: [
     Text('0'),
     Text('1'),
     Text('2'),
     Text('3'),
  ],
)
CircularMotion.builder()

Example

CircularMotion.builder(
    itemCount: 18,
    centerWidget: Text('Center'),
    builder: (context, index) {
      return Text('$index');
    }
)

Issues and Feedback

Please feel free to report any issues you face
Also PR's and additional feedback is appreciated

Enjoy 💫