0

I'm aware of this post how to assign a border to e.g. a Container.

Unfortunately, I failed to find a hint how to only draw the left edge of a Container as a border.

How to assign a border only to one edge of a Widget / Container?

SteAp
  • 11,853
  • 10
  • 53
  • 88

1 Answers1

0

You can add one side border like so

Container(
  decoration: BoxDecoration(
     border: Border(left: BorderSide(width: 1, color: Colors.red)
  ),
  child: //...,
)

There are also right, top, and bottom params

Roaa
  • 1,212
  • 7
  • 11