androidflutterwidgetpaddingdismissible

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.

dismissible screenshot


Solution

  • 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.