Coder Social home page Coder Social logo

Comments (6)

letsar avatar letsar commented on September 18, 2024 1

In a Slidable's child, you can now (in the 1.0 version) listen to the Slidable.of(context).animation, which changes everytime the ratio changes. With that, you can do any custom effect you want.

from flutter_slidable.

tigrenok00 avatar tigrenok00 commented on September 18, 2024

I tried using the isOpen bool in the controller, however, it looks like it is updated when the action box only begins to open and not when it is fully open.

from flutter_slidable.

Gorniv avatar Gorniv commented on September 18, 2024

I want this too! Without remove item.
slideToDismissDelegate can similar action, but remove item...

from flutter_slidable.

tigrenok00 avatar tigrenok00 commented on September 18, 2024

@letsar Hi, could you please share some tips how it can be implemented? Thanks!

from flutter_slidable.

letsar avatar letsar commented on September 18, 2024

Hi @tigrenok00, for now, I'm not sure if it can be implemented, by I'm working on a full code refactoring and I think i can make this happen.

from flutter_slidable.

Jure-BB avatar Jure-BB commented on September 18, 2024

@letsar It would be great, if you could expose necessary events while refactoring, so this could be implemented.

The interaction goes like this:

  • When user starts sliding, slide action is in inactive state. Background color of the slide action is set to inactive color (eg. gray).
  • When user passes certain extent threshold, slide action changes to activated state. Background color changes to active color (normal color) and slight haptic feedback communicates to user that action state has changed.
  • If user releases the finger from screen while slide action is in activated state, action is fired and the slide action closes.
  • If instead, user slides back so that extend goes under the activation threshold, slide action is deactivated. If user releases the finger from screen while the slide action is in inactive state, slide action closes and action is NOT triggered.

Limitation: there can be only one slide action on each side for this interaction.

from flutter_slidable.

Related Issues (20)

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.