flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

Custom Layouts

Open dndeus opened this issue 3 years ago • 6 comments

Hi there and thanks for the widget.

I would like to get some pointers on how to customize the action buttons. I attach bellow what my situation is

Screenshot 2022-07-07 at 5 12 22 PM

My list item has rounded corners as you see so I want the first action button to be maybe closer to the list item in order to blend in or is it possible to with some cliprect or something to alter the shape of the action button.

Any suggestions? Thanks

dndeus avatar Jul 07 '22 14:07 dndeus

You can use CustomSlidableAction instead of SlidableAction.

letsar avatar Jul 10 '22 15:07 letsar

I think that is not possible with the CustomSlidableAction

rekire avatar Sep 14 '22 13:09 rekire

I have exactly same problem.

How to make this small little piece to have a color of a SlidableAction? How CustomSlidableAction can solve it? image

mpszczolinski avatar Sep 23 '22 19:09 mpszczolinski

I ended with a full custom implementation. In other words I'm not using this widget.

rekire avatar Sep 23 '22 19:09 rekire

I ended with a full custom implementation. In other words I'm not using this widget.

@rekire can you share the code?

mpszczolinski avatar Sep 28 '22 06:09 mpszczolinski

It's right now part of a commercial closed source project. So this is a bit tricky. Currently it also would leak internal usage, but I need to refactor it anyway. When done I can ask to publish it as a gist (so I do not need to maintain it).

rekire avatar Sep 28 '22 06:09 rekire