Skip to content

[102] Image BoxFit.fixWidth now requires a clipBehavior to be passed to the parent card  #130

Closed
@ratiofu

Description

@ratiofu

I am new to Flutter. Working through the Material tutorial, the product images were not being clipped at the rounded card edges:

img_d65b4c17e0f5-1

As the linked Flutter issue describes, it's now required to specify the clip behavior of the card:

      return Card(
+       clipBehavior: Clip.antiAlias,
        // TODO: Adjust card heights (103)
        child: Column(

As an aside, adding/changing that parameter and letting Hot Reload do its thing did not result in the cards being repainted with the proper clipping behavior. I had to Hot Restart the app on the device to make the change stick. Perhaps I am doing something wrong or this is another (Flutter? Material?) bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions