Comments (2)
The Divider is part of the Slidable:
Slidable(
...
child: Column(
children: [
ListTile(...),
Divider(),
],
),
...
)
You could do something like this:
Widget row(int index) => index.isEven ? setupListTile(index~/2) : Divider();
Widget setupListTile(int index){
return Slidable(
...
child: ListTile(...),
....
);
}
from flutter_slidable.
Thanks @miDeb , this is it! The Divider
should be a row itself.
I'm suggesting you to use the ListView.separated
constructor to create something like this:
ListView.separated(
itemCount: count,
separatorBuilder: (BuildContext context, int index) => Divider(),
itemBuilder: (BuildContext context, int index) {
return Slidable(
child: ListTile(...),
);
},
);
from flutter_slidable.
Related Issues (20)
- Slidable status (open/close) HOT 2
- Doesn't auto close when another slidable in list is open HOT 2
- Slidable position is reseting after refresh.
- Back swipe navigation on flutter iOS not working when using flutter_slidable package
- How to provide border radius to it ?
- The icon of SlidableAction will not be displayed in the center when padding is not set
- Style problem HOT 2
- How do I add a remove animation?
- How to open panes when creating widgets in Flutter slideable package
- When SlidableAction slides to the left to open, close the current page.
- Slidable open Not effective ?
- Doesn't work inside a PageView HOT 1
- how to dismiss slidableAction when using other widget HOT 1
- Want notification when automatically turning off sideslip
- Selection of text inside `TextField` triggers slidable
- how to open slidable in InitState HOT 1
- How to define custom height? HOT 1
- Edit label style and icons size
- Secondary deletion
- How to set the slider extent? HOT 1
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.