We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to show one circle at a time its moving too fast??? Speed make it slow??
The text was updated successfully, but these errors were encountered:
To achieve a one-circle-at-a-time scroll behaviour, I would recommend using a custom ScrollPhysics which extends CircleFixedExtentScrollPhysics.
ScrollPhysics
CircleFixedExtentScrollPhysics
class CustomScrollPhysics extends CircleFixedExtentScrollPhysics { const CustomScrollPhysics ({ScrollPhysics parent}) : super(parent: parent); @override double get minFlingVelocity => double.infinity; @override double get maxFlingVelocity => double.infinity; @override double get minFlingDistance => double.infinity; @override CustomScrollPhysics applyTo(ScrollPhysics ancestor) { return CustomScrollPhysics (parent: buildParent(ancestor)); } }
The CustomScrollPhysics can then be passed to the CircleListScrollView as shown below.
CustomScrollPhysics
CircleListScrollView
CircleListScrollView( physics: CustomScrollPhysics(), axis: Axis.horizontal, itemExtent: 175, children: List.generate( 5, (int i) => Center( // feel free to design each item as you wish here... child: Container( width: 175, height: 175, color: Colors.blue, ), ), ), radius: MediaQuery.of(context).size.width * .65, ),
Source: StackOverflow
Sorry, something went wrong.
No branches or pull requests
How to show one circle at a time its moving too fast???
Speed make it slow??
The text was updated successfully, but these errors were encountered: