0
Container(
  decoration: BoxDecoration(
    boxShadow: BoxShadow(
      color: Colors.black,
      blurRadius: 5,
      spreadRadius: 6,
    ),
    color: Color.fromARGB(255, 255, 255, 255),
    border: Border(
      left: BorderSide(color: Colors.black, width: 10.0),
    ),
  ),
)

What is wrong, why are there red lines under the Boxshadow? I watched a video and did exactly what he did. Where is the mistake?

Md. Yeasin Sheikh
  • 54,221
  • 7
  • 29
  • 56
lucy
  • 21
  • 7

1 Answers1

1

You need to pass list of BoxShadow on boxShadow.

Container(
  decoration: BoxDecoration(
    boxShadow: [ // issue was here
      BoxShadow(
        color: Colors.black,
        blurRadius: 5,
        spreadRadius: 6,
      ),
    ],
    color: Color.fromARGB(255, 255, 255, 255),
    border: Border(
      left: BorderSide(color: Colors.black, width: 10.0),
    ),
  ),
)

More about Container

Md. Yeasin Sheikh
  • 54,221
  • 7
  • 29
  • 56
  • When I get four more reputation I will confirm your answer as valid thanks again!!! – lucy Jul 30 '22 at 18:20