Giter Site home page Giter Site logo

mostafa-wael / wormy_effect_button Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 208 KB

Flutter Package that helps you create draggable widgets with wormy effect

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

License: Other

Dart 22.98% Kotlin 0.32% Swift 1.04% Objective-C 0.10% HTML 10.08% CMake 20.39% C++ 43.20% C 1.89%
package draggable flutter dart pubdev open-source

wormy_effect_button's Introduction

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!

wormy_effect_button's People

Contributors

ahmedihabb2 avatar doniaesawi avatar mostafa-wael avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.