Last updated:
0 purchases
animate on hover
Animate on Hover #
Add animation(s) to your widgets on web when hovered, using this package.
Screenshot #
Getting started #
Add this to your package's pubspec.yaml file
dependencies:
animate_on_hover: ^1.0.2
copied to clipboard
Usage #
Next, you have to import the package using:
import 'package:animate_on_hover/animate_on_hover.dart';
copied to clipboard
Then, add increaseSizeOnHover() method with value of the scale-factor as argument to your widget:
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
height: 75,
width: 100,
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(5),
),
).increaseSizeOnHover(1.5),
),
);
}
copied to clipboard
Additional information #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.