flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

How to set SlidableAction's width?

Open Espero1995 opened this issue 2 years ago • 7 comments

Thank you for your widget, may I ask how to set the width of the SlidableAction? When only one is set, too wide affects the user experience. Or can the width be determined according to the number of children?

Espero1995 avatar Jul 27 '22 11:07 Espero1995

You may use the extentRatio params inside the actionpane to give it a width.

endActionPane: ActionPane( extentRatio: 0.2 // 20% of the width of the screen)

Zechst avatar Jul 28 '22 14:07 Zechst

@Zechst thx it's work fine.

ziqq avatar Sep 13 '22 05:09 ziqq

Is there no other way? I would prefer not to change that property everytime the view becomes resized.

rekire avatar Sep 14 '22 13:09 rekire

@rekire What do you meant by everytime the view becomes resized?

Zechst avatar Sep 27 '22 01:09 Zechst

@Zechst thinks!

keepgagaga avatar Oct 28 '22 02:10 keepgagaga

@Zechst Sorry I missed your question: When you use it in a desktop app and you resize the window.

rekire avatar Oct 28 '22 05:10 rekire

Is there no other way? I would prefer not to change that property everytime the view becomes resized.

Same Question here!

hws2002 avatar Oct 26 '23 07:10 hws2002