wormy_effect_button 0.0.2 wormy_effect_button: ^0.0.2 copied to clipboard
Support creating draggable widgets with wormy effect, by adding an underlying set of widgets. The developer can control the dragging speed, curve style, final position, and add an onPressed function. [...]
WormyEffectButton #
Platform Support #
Android | iOS | MacOS | Web | Linux | Windows |
---|---|---|---|---|---|
✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
Features #
This Package helps you to create draggable widgets with wormy effect
Getting started #
You should ensure that you add the dependency in your flutter project.
dependencies:
wormy_effect_button: "^0.0.1"
Usage #
import 'package:wormy_effect_button/wormy_effect_button.dart';
WormyEffectButton(
onPressed: _incrementCounter,
initialOffset: const Offset(340, 610),
holdPosition: false,
curve: Curves.fastLinearToSlowEaseIn,
motionDelay: 400,
children: [
Container(
width: 50,
height: 50,
child: const Icon(Icons.camera),
decoration:
const BoxDecoration(color: Colors.blue, shape: BoxShape.circle),
),
Container(
width: 50,
height: 50,
child: const Icon(Icons.camera),
decoration:
const BoxDecoration(color: Colors.red, shape: BoxShape.circle),
),
],
),
);
Example #
Additional information #
More information about how to contribute will be available soon!