Coder Social home page Coder Social logo

Comments (9)

jaumard avatar jaumard commented on August 15, 2024 5

I can confirm the problem (and the solution ^^) would be nice to have this patch and deploy @letsar :)

from flutter_slidable.

PabloPL avatar PabloPL commented on August 15, 2024 4

PR created.

from flutter_slidable.

letsar avatar letsar commented on August 15, 2024 4

Fixed in 0.5.2

from flutter_slidable.

 avatar commented on August 15, 2024 3

Until we have this PR merged, I am using a workaround, set dismissal to the following:

dismissal: SlidableDismissal(
     child: SlidableDrawerDismissal(),
     onWillDismiss: (actionType) {
         return false;
     },
),

this is enforcing to have a dismissal property by always is canceling the dismissal actions

from flutter_slidable.

PabloPL avatar PabloPL commented on August 15, 2024 2

In slidable.dart (in flutter_slidable lib) replace

double get _dismissThreshold =>
    widget.dismissal?.dismissThresholds[actionType] ?? _kDismissThreshold;

With something like this

double get _dismissThreshold {
    if (widget.dismissal == null) return _kDismissThreshold;
    else return widget.dismissal.dismissThresholds[actionType] ?? _kDismissThreshold;
  }

For me it's working fine

from flutter_slidable.

JeffersonCarvalh0 avatar JeffersonCarvalh0 commented on August 15, 2024 1

Thanks, @eponcedeleon. Your solution worked here, but I had to add a key property to theSlidable object in order for it to work

from flutter_slidable.

tegab avatar tegab commented on August 15, 2024

can you show code on how you solved it.. thnx

from flutter_slidable.

jeffaknine avatar jeffaknine commented on August 15, 2024

First time trying the package and I'm running into this issue as well. @PabloPL maybe you could send a PR to get this fixed ?

from flutter_slidable.

hiroshihorie avatar hiroshihorie commented on August 15, 2024

Please fix ASAP!

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.