Answers for "container box shadow flutter"

12

flutter add shadow to container

Container(
  decoration: BoxDecoration(
    boxShadow: [
      BoxShadow(
        color: Colors.grey.withOpacity(0.8),
        spreadRadius: 10,
        blurRadius: 5,
        offset: Offset(0, 7), // changes position of shadow
      ),
    ],
  ),
  child: Image.asset(chocolateImage),
)
Posted by: Guest on April-08-2020
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
3

shadow container flutter

BoxDecoration(
  boxShadow: [
    BoxShadow(
      color: Colors.grey.withOpacity(0.5),
      spreadRadius: 5,
      blurRadius: 7,
      offset: Offset(0, 3), // changes position of shadow
    ),
  ],
)
Posted by: Guest on June-27-2020
6

flutter container shadow

Container(
                decoration: BoxDecoration(
                  boxShadow: [
                    BoxShadow(
                      color: Colors.grey.withOpacity(0.4),
                      spreadRadius: 2,
                      blurRadius: 8,
                    ),
                  ],
                ),
               ),
Posted by: Guest on September-01-2021
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
0

flutter shadow container

Card(
            elevation: 8,
            child: Container(width: 100, height: 100, color: Colors.blue),
          ),
Posted by: Guest on January-27-2021

Code answers related to "container box shadow flutter"

Browse Popular Code Answers by Language