flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

I think that the issue at hand is, that the SlidableAction can not have a fixed size at the moment, but always resizes based on the extentRatio. This is great in itself, but it might be beneficial for a few cases to have the extentRatio: null and set a fixed width in the `SlidableAction` / `CustomSlidableAction`

Open sivakarthikayan-cs opened this issue 2 years ago • 1 comments

          I think that the issue at hand is, that the SlidableAction can not have a fixed size at the moment, but always resizes based on the extentRatio. This is great in itself, but it might be beneficial for a few cases to have the extentRatio: null and set a fixed width in the `SlidableAction` / `CustomSlidableAction`

(If you think this is another issue, than the one I highjacked rn, please tell me and I open a seperate one. I was inspired by this)

https://user-images.githubusercontent.com/77293597/142193270-4be82c05-8ad1-426d-ae79-29f929f76520.mp4

Originally posted by @jlnrrg in https://github.com/letsar/flutter_slidable/issues/228#issuecomment-971492711

sivakarthikayan-cs avatar Mar 08 '23 16:03 sivakarthikayan-cs

You can use the following as a temporary fix while waiting for fixed-size ActionPane to be released:

extentRatio: size / MediaQuery.sizeOf(context).width,

^ where size is the fixed width that you want for your action pane.

Note: it won't resize with the window while being open, but it will have correct size on next opening (after window resized).

gruvw avatar Nov 15 '23 20:11 gruvw