简体   繁体   中英

Border drag end for dismissible widget

When I wrap listtile in card with dismissible widget into another card or container as in the screenshot in the link, when I drag the dismissible card, it goes out of the parent card that wraps it. I don't want it to go outside the white card area in the screenshot in the link.

可关闭的屏幕截图

You can set the clipBehavour of your Card to any of the Clip.hardEdge , Clip.antiAlias , Clip.antiAliasWithSaveLayer . This clips the content of your card when drawing.

You should read up on the clipping behaviour, artifacts and trade-offs in the Clip documentation as different behaviors result in different results in terms of aliasing and performance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM