Answers for "boxShadow: [ ] flutter"

6

box shadow flutter

new Container(
    height: 200.0,
    decoration: new BoxDecoration(
        boxShadow: [
          BoxShadow(
            color: Colors.red,
            blurRadius: 25.0, // soften the shadow
            spreadRadius: 5.0, //extend the shadow
            offset: Offset(
              15.0, // Move to right 10  horizontally
              15.0, // Move to bottom 10 Vertically
            ),
          )
        ],
    );
    child: new Text("Hello world"),
);
Posted by: Guest on May-19-2020
0

box shadow flutter

boxShadow: [
          BoxShadow(
            color: Colors.redAccent,
            offset: Offset(0.0, 1.0), //(x,y)
            blurRadius: 3.0,
          ),
        ],
Posted by: Guest on September-11-2021

Browse Popular Code Answers by Language