How to achieve transparent background in ChoiceChip?

The Chip widget has a material which is colored according to the Theme. You can change that by changing the Theme.canvasColor, like this:

Theme(
  data: ThemeData(canvasColor: Colors.transparent),
  child: Chip(
    label:Container(/*your widget*/),
    backgroundColor: Colors.transparent, // or any other color
  ),
)

Or, you can keep your old Theme (except the canvasColor) by doing this:

Theme(
  data: Theme.of(context).copyWith(canvasColor: Colors.transparent),
  child: Chip(
    label: Container(/*your widget*/),
    backgroundColor: Colors.transparent, // or any other color
  ),
)

Tags:

Flutter