Closed themisir closed 4 years ago
Fixed by adding canvasColor: Colors.transparent,
and using Stack.
@TheMisir - can you show an example
@MarkStepp I don't remember actually, but I think I changed child container's borderRadius
property. I'm sorry but I forget where did I write the code.
It looked like that:
Stack(
children: [
YourScreenContent(),
SolidBottomSheet(
headerBar: Container(
decoration: new BoxDecoration(
color: Colors.green,
borderRadius: new BorderRadius.only(
topLeft: const Radius.circular(40.0),
topRight: const Radius.circular(40.0))
),
),
),
],
);
If anyone's wondering, the canvasColor
is supposed to be used inside your MaterialApp
's ThemeData
Hi,
I wanted to change border-radius using
BoxDecorator
but the result is not fine. The borders were clipped but I saw white background bellow borders. (my background is colorful so I want opaque bg not white).Also, I wanted to change the opacity of the container but changing the color of
Container
or addingOpacity
above container did not work.Thanks in advance!