위 그림 처럼 Text에 outline 입히는 법을 알아보자
Stack(
children: <Widget>[
Text(snapshot[i].add_2.toString().trim(),
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
foreground: Paint()
..style = PaintingStyle.stroke
..strokeWidth = 3
..color = Colors.white, // <-- Border color
),
),
Text(snapshot[i].add_2.toString().trim(),
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: Colors.black, // <-- Inner color
),
),
],
),