v1.0.4tdk_bouncingwidget
클릭 시 Flutter 위젯에서 반동 애니메이션을 구현하기 위한 가벼운 Flutter 패키지입니다. 세 가지 유형의 반동 애니메이션이 제공됩니다.
버ouncing 위젯을 위한 플러터 패키지
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Want to animate your widgets (like containers, cards etc...) bouncing In and out while clicking? Here is the package for that.
This package contains a widget, where you need to wrap your own widgets ( like container, cards ect...) to animate them bounce in and out while clicking.
As the first step we need to add this package in pubspec.yaml file or run the following command flutter pub add tdk_bouncingwidget
Just wrap your widget inside BouncingWidgetInOut widget as shown below and we are done!!
BouncingWidgetInOut(
onPressed: () {},
bouncingType: BouncingType.bounceInAndOut,
child : Container(
height: 60,
width: 200,
child: const Text('click to bounce')
))
There is one optional parameter called "bouncingType" which specifies the bouncing type of the widget. That is "Bouncing In only" or "Bouncing out Only" or both "Bouncing In and Out". By default bouncingType is "bounceInOnly".
bounceInOnly => Widget will shrink and grow based on scale factor value.
bounceOutOnly => Widget will grow and shrink based on scale factor value.
bounceInAndOut => Widget will shrink and grow first and then it will grow and shrink based on the scale factor value.
You can even customize the bouncing animation by giving duration how much time your widgets needs to animate and how large and small your widget should grow/shrink by giving scale factor value.
Feel free to raise an issue if anything breaking, I will try to fix that ASAP. Github link mentioned above. Thanks!
의존성 목록 3 개
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗