You can add the Text
as a child
to a Container
that has a BoxDecoration
with border
property:
![enter image description here](https://i.stack.imgur.com/CIrsP.png)
Container(
margin: const EdgeInsets.all(15.0),
padding: const EdgeInsets.all(3.0),
decoration: BoxDecoration(
border: Border.all(color: Colors.blueAccent)
),
child: Text('My Awesome Border'),
)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…