FLUTTER ECOSYSTEM

lewiseman/circular_motion

एक फ्लटर पैकेज जो सीमित क्षेत्र के भीतर एक गोलाकार सूची/गति स्क्रॉल प्रभाव बनाने के लिए है।

गोलाकार गति प्रोजेक्ट कवर
Stars
7
Forks
0
अंतिम पुश (UTC)
29 दिस॰ 2023
प्रोजेक्ट स्थिति
सक्रिय
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 💫