flutter_slidable
flutter_slidable copied to clipboard
How to set SlidableAction's width?
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?
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 thx it's work fine.
Is there no other way? I would prefer not to change that property everytime the view becomes resized.
@rekire What do you meant by everytime the view becomes resized?
@Zechst thinks!
@Zechst Sorry I missed your question: When you use it in a desktop app and you resize the window.
Is there no other way? I would prefer not to change that property everytime the view becomes resized.
Same Question here!