Code Monkey home page Code Monkey logo

flutter_bounceable's Introduction

flutter_bounceable

  • A simple, interactive and customizable on-tap bounce animation that can be wrapped on any widgets that you like.
  • You can create custom bouncing animation similarly to apps like Spotify and App Store.
  • Package similar to flutter_bounce and bouncing_widget.

Advantages:

  • Truly simple and efficient.
  • Customizable bouncing animation using curve, scaleFactor and duration.
  • Options to control onTap, onTapUp, onTapDown and onTapCancel.
  • Enable and disable onTap option.
  • Not sticky when scrolling.
  • Does not trigger multiple onTap events when tapped on multiple Bounceable widget simultaneously.

๐Ÿš€ Installing:

In your pubspec.yaml

dependencies:
  flutter_bounceable: ^1.1.0
import 'package:flutter_bounceable/flutter_bounceable.dart';

Usage:

Just wrap on any widget that you like, it just works๐Ÿ™‚:

Bounceable(
  onTap: () {},
  child: YourWidget(),
);

Demo:

Contributing:

Feature requests and pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Support:

"Buy Me A Coffee"

flutter_bounceable's People

Contributors

mingsern avatar mrn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_bounceable's Issues

Hot reload is not working

First of all thankyou for the simple widget. Only issue i am facing is that when i change the parameter and hotreload it doesn't apply the changes i need to hotrestart to see those changes.

Is this a issue or Am i missing something here?

Issue regarding simultaneous bounce effect

i am new to flutter so do not understand much of widget , tree stuff but will try best to explain the issue.

Issue

It is specifilcally regarding touchpad on laptops. Whenever in a widget tree if there two or more than two Bounceable widget with one being child and other being parent then taping on one of the child widget create bouncy effect for both child as well as for the parent Bounceable widgets.

Video

Avoid the black flickering (Screenrecorder issue).

Screencast.from.04-16-2022.01_55_53.AM_compressed.mp4

Code

  Bounceable(
              scaleFactor: 0.5,
              onTap: () {},
              child: Container(
                color: Colors.pink,
                height: 700,
                width: 200,
                child: Bounceable(
                  scaleFactor: 0.5,
                  onTap: () {},
                  child: Center(
                    child: Container(
                      width: 200,
                      color: Colors.green,
                      height: 200,
                      child: Bounceable(
                        scaleFactor: 0.2,
                        onTap: () {},
                        child: const Center(
                          child: Icon(
                            Icons.settings,
                            size: 50,
                          ),
                        ),
                      ),
                    ),
                  ),
                ),
              ),
            ),

Feature Request: Support for onLongPress Action

Hello!

First of all, thanks for the great work on the flutter_bouncable package. Itโ€™s been incredibly useful for creating interactive UI elements with smooth animations.

However, Iโ€™ve encountered a use case where I need the ability to handle a onLongPress action, which is currently not supported. Having an onLongPress callback would be beneficial in many scenarios, such as showing context menus, triggering secondary actions, or providing additional functionality based on a prolonged interaction.

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.