Container(
child: Text(
\'This is a Container\',
textScaleFactor: 2,
style: TextStyle(color: Colors.black),
),
decoratio
There are a couple ways to add a border to a Flutter widget. The most basic way is to wrap your widget in a DecoratedBox. However, the Container widget also has a DecoratedBox built in.
For output as above use a Stack instead of Row because of Stack allows us to make multiple widgets overlay each other and you can align or position your widget using the Align or Positioned widget.
Container(
height: 65,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.deepPurple.shade100,
),
child: Stack(
children: [
Container(
width: 8,
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(15),
bottomLeft: Radius.circular(15)),
color: Colors.deepPurple,
),
)
],
),
)