bouncing_widget 1.1.0 bouncing_widget: ^1.1.0 copied to clipboard
A widget that enables you to add a bouncing animation on a widget.
bouncing_widget #
A widget that enables you to add a bouncing animation on a widget.
Example #
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.
BouncingWidget(
scaleFactor: 1.5,
onPressed: () {
print("onPressed");
},
child: Text(
"Hello !",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 35,
),
),
),