dbenitez-bcn / solid_bottom_sheet

Apache License 2.0
58 stars 19 forks source link

Cannot make top conners rounded. #29

Open Creative-Dotlogics opened 3 years ago

Creative-Dotlogics commented 3 years ago

There is always a white background that cannot be set to transparent making it impossible to achieve the second example(orange) without having that annoying white background behind the curved header.

gbmiranda commented 3 years ago

same here

crushman1 commented 3 years ago

how do we fix that ?

firebatu commented 3 years ago

This problem is related to Scaffold's bottomSheet functionality, NOT to this package. To fix that problem - wrap your widget to Theme and set canvasColor to transparent.

Theme(
      data: Theme.of(context).copyWith(canvasColor: Colors.transparent),
      child: Scaffold(
        bottomSheet: SolidBottomSheet(
        ...