Mostafa-wael / wormy_effect_button

Flutter Package that helps you create draggable widgets with wormy effect

Home Page:https://pub.dev/packages/wormy_effect_button

Repository from Github https://github.comMostafa-wael/wormy_effect_buttonRepository from Github https://github.comMostafa-wael/wormy_effect_button

WormyEffectButton

drawing

pub package pub points popularity

Platform Support

Android iOS MacOS Web Linux Windows
✔️ ✔️ ✔️ ✔️ ✔️ ✔️

Features

This Package helps you to create draggable widgets with wormy effect

Demo

wormy.mp4

Getting started

You should ensure that you add the dependency in your flutter project.

dependencies:
  wormy_effect_button: "^0.0.4"

Usage

import 'package:wormy_effect_button/wormy_effect_button.dart';
WormyEffectButton(
        onPressed: _incrementCounter, // the onPressed function
        initialOffset: const Offset(340, 610), // the initial offset of the button
        holdPosition: false, // indicates whether the button will return back to its initial offset or not
        hideUnderlying: false, // hide the underlying widgets in the static condition
        curve: Curves.fastLinearToSlowEaseIn, // the way that the widgets animates
        motionDelay: 400, // the delay between the movement of the underlying widgets
        children: [ // the underlying widgets that will be animated
          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),
          ),
        ],
      ),
    );

Additional information

More information about how to contribute will be available soon!

About

Flutter Package that helps you create draggable widgets with wormy effect

https://pub.dev/packages/wormy_effect_button

License:Other


Languages

Language:C++ 43.2%Language:Dart 23.0%Language:CMake 20.4%Language:HTML 10.1%Language:C 1.9%Language:Swift 1.0%Language:Kotlin 0.3%Language:Objective-C 0.1%