You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slidable(
// The end action pane is for actions when sliding from right to left
endActionPane: ActionPane(
motion: const DrawerMotion(),
children: [
SlidableAction(
autoClose: true,
onPressed: (_) => _deleteTodo(index),
backgroundColor: dangerColor,
icon: Icons.delete,
label: 'Delete',
spacing: 8,
),
],
),
);
Ouput:
Expectation: I should able to define custom height.
The text was updated successfully, but these errors were encountered:
sidh41
changed the title
I'm not able to define custom height
How to define custom height?
Feb 7, 2024
I had this issue when I used a ListTile as my list item. My fix was to replace the ListTile with a GestureDetector > Container. Now the slidable drawer had the same height as the list item, but it removed the vertical spacing between items. So I also replaced my ListView.builder with a ListView.separated to re-introduce the gap between list items.
Code:
Ouput:

Expectation: I should able to define custom height.
The text was updated successfully, but these errors were encountered: