morph_button 0.0.2 morph_button: ^0.0.2 copied to clipboard
Animate buttons! Flutter package for dynamic shapes & smooth animations.
MorphButton #
An animated shape transform button.
Install #
Add morph_button to your pubspec.yaml
Using Dart package
dart pub add morph_button
Using GIT URL
dependencies:
morph_button:
git:
url: https://github.com/anoochit/morph_button.git
Usage #
MorphButton(
width: 200.0,
height: 200.0,
pressedColor: Theme.of(context).colorScheme.primary,
initialColor: Theme.of(context).colorScheme.primary.withOpacity(0.6),
initialRadius: 24.0,
title: const Text(
'Click Me',
style: TextStyle(
fontSize: 20.0,
color: Colors.white,
),
),
onTap: () {},
);