Comments (6)
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.
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.
I want this too! Without remove item.
slideToDismissDelegate can similar action, but remove item...
from flutter_slidable.
@letsar Hi, could you please share some tips how it can be implemented? Thanks!
from flutter_slidable.
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.
@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)
- Focus on flutter web HOT 1
- Query: Smooth DismissiblePane Implementation within ActionPane? HOT 1
- Slidable widget not closing properly HOT 1
- If more than two SlidableAction, the lable disappear HOT 3
- How to close other ActionPanels when i tap outside? HOT 1
- This widget has been unmounted, so the State no longer has a context (and should be considered defunct). HOT 3
- Error: A constant constructor can't call a non-constant super constructor. HOT 2
- UI breaks while swiping and on navigation
- Can't create SlidableController according to documentation HOT 3
- Error: The method 'hashValues' isn't defined for the class HOT 9
- slidable action more than 4 item
- When you click to delete, the button covers the entire position, and then click to delete.
- How do I animate a flex change
- adding space between action and tile and renderflex error HOT 1
- Please add the ability to add a image instead of an icon
- Not close when enclosed in an inner ListView.
- Error in latest version flutter 3.24 HOT 2
- The "groupTag" property is not working HOT 1
- Flutter slidable onDismissed error when delete middle item
- When expanding or collapsing the secondary Item of ExpandableListView, the secondary Slidable cannot be automatically closed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_slidable.