Home

Published

- 1 min read

flutter rounded container transperent corners

img of flutter rounded container transperent corners

The solution for this is noted below

flutter rounded container transperent corners

Solution

   new Container(
          height: 300.0,
          color: Colors.transparent,
          child: new Container(
            decoration: new BoxDecoration(
              color: Colors.green,
              borderRadius: new BorderRadius.only(
                topLeft: const Radius.circular(40.0),
                topRight: const Radius.circular(40.0),
              )
            ),
            child: new Center(
            child: new Text("Hi modal sheet"),
           )
         ),
        ),

Try other methods by searching on the site. That is if this doesn’t work