FLUTTER ECOSYSTEM

ThomasEcalle/bouncing_widget

Ein Widget, mit dem Sie eine Bounce-Animation auf einem Widget hinzufügen können.

Projektcover von bouncing_widget
Stars
43
Forks
13
Letzter Push (UTC)
11.10.2023
Projektstatus
Aktiv
Ecalle Thomas GitHub avatar
GITHUB User

Ecalle Thomas ↗

SprachenDartHTMLSwiftKotlinObjective-C

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 2 Einträge
  • flutter{"sdk":"flutter"}
  • flutter_testEntwicklung{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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,
    ),
  ),
),