FLUTTER ECOSYSTEM

ThomasEcalle/bouncing_widget

ウィジェットにバウンスアニメーションを追加できるウィジェットです。

bouncing_widget のプロジェクト画像
Stars
43
Forks
13
最終プッシュ(UTC)
2023/10/11
プロジェクト状態
公開中
Ecalle Thomas GitHub avatar
GITHUB User

Ecalle Thomas ↗

言語DartHTMLSwiftKotlinObjective-C

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

bouncing_widget

A widget that enables you to add a bouncing animation on a widget.

Example

https://raw.githubusercontent.com/ThomasEcalle/bouncing_widget/master/documentation/gif_bouncing.gif

How does it work ?

You just have to encapsulate the widget of your choice with a BouncingWidget.

You may also use a scaleFactor to customize the scaling effect as in the gif example. Or even customize the animation's duration with the duration parameter (200 milliseconds by default).

BouncingWidget(
  duration: Duration(milliseconds: 100),
  scaleFactor: 1.5,
  onPressed: () {
    print("onPressed");
  },
  child: Text(
    "Hello !",
    style: TextStyle(
      color: Colors.white,
      fontWeight: FontWeight.bold,
      fontSize: 35,
    ),
  ),
),