Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup the Slidable to occupy 1/4 or 1/8 instead of 1/2 of the size the Widget applied to Slidable? #432

Closed
Victorcorcos opened this issue Jun 23, 2023 · 2 comments

Comments

@Victorcorcos
Copy link

Victorcorcos commented Jun 23, 2023

I have this

Screen Shot 2023-06-23 at 01 59 48

But I want this

Screen Shot 2023-06-23 at 01 59 54

How can I do it?

⚠️ I tried to wrap SlidableAction into a Container with width: 80, but that huge blank space appears.

Screen Shot 2023-06-23 at 02 03 35

Looks like the Slidable widget is always occupying half of the size of the Widget that it surrounds... 😱

I want Slidable to occupy just 1/4 or 1/8 instead of 1/2 of the size the Widget applied to Slidable.
Is it possible?

@Victorcorcos Victorcorcos changed the title How to setup the Slidable to occupy a specific How to setup the Slidable to occupy 1/4 or 1/8 instead of 1/2 of the size the Widget applied to Slidable? Jun 23, 2023
@CojocaruCristi
Copy link

On ActionPane use extentRatio param
https://stackoverflow.com/questions/71793578/flutter-package-slidable-width

@Victorcorcos
Copy link
Author

Thanks @CojocaruCristi

It worked 👏

Slidable(
  startActionPane: ActionPane(
   extentRatio: 0.1
[ . . . ]
Screen Shot 2023-06-23 at 15 41 43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants