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

Request for rounded corner when slide. #194

Closed
pavel-birdy opened this issue Mar 12, 2021 · 3 comments
Closed

Request for rounded corner when slide. #194

pavel-birdy opened this issue Mar 12, 2021 · 3 comments

Comments

@pavel-birdy
Copy link

pavel-birdy commented Mar 12, 2021

Here is an example of the google Gmail app (android) if you try to slide the tile corner will become rounded. I think also have some shadow.

photo_2021-03-12 19 49 49

Here another example of Telegram android app which also has rounded corners when slides

photo_2021-03-12 19 49 45

@selvas1998
Copy link

The problem is card's deafult margin is 4.0, so you have to reduce the size to make compatible to slidable widget.
Solution:
You can achieve by setting Card margin right as 0.0.
Slidable(
child: Card(
margin: EdgeInsets.only(right: 0.0)
child: ......
))

@rachet-khanal
Copy link

This helped me to make similar rounded corners effect: Issue 173

@pavel-birdy
Copy link
Author

pavel-birdy commented Jul 12, 2021

I published this package which solved my issue. https://pub.dev/packages/swipeable_tile
And thanks @rachet-khanal for letting me know.

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

3 participants