FLUTTER ECOSYSTEM

MingSern/flutter_bounceable

一个简单、交互式且可自定义的点击弹跳动画,可以包装在您喜欢的任何小部件上。

flutter_bounceable 项目封面
Stars
31
Forks
8
最近推送(UTC)
2025年1月6日
项目状态
未归档
Winson Yeo GitHub avatar
GITHUB User

Winson Yeo ↗

CodeBudee SolutionsMalaysia官方网站 ↗
语言DartHTMLSwiftKotlinObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 3 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^1.0.0

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

flutter_bounceable

  • A simple, interactive and customizable on-tap bounce animation that can be wrapped on any widgets that you like.
  • You can create custom bouncing animation similarly to apps like Spotify and App Store.
  • Package similar to flutter_bounce and bouncing_widget.

Advantages:

  • Truly simple and efficient.
  • Customizable bouncing animation using curve, scaleFactor and duration.
  • Options to control onTap, onTapUp, onTapDown, onTapCancel and onLongPress.
  • Enable and disable onTap option.
  • Not sticky when scrolling.
  • Does not trigger multiple onTap events when tapped on multiple Bounceable widget simultaneously.

🚀 Installing:

In your pubspec.yaml

dependencies:
  flutter_bounceable: ^1.2.0
import 'package:flutter_bounceable/flutter_bounceable.dart';

Usage:

Just wrap on any widget that you like, it just works🙂:

Bounceable(
  onTap: () {},
  child: YourWidget(),
);

Demo:

https://github.com/MingSern/flutter_bounceable/raw/main/documentation/demo.gif

Contributing:

Feature requests and pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Support:

"Buy Me A Coffee"