update label to black and white
This commit is contained in:
@ -105,24 +105,37 @@ class MapWidget extends StatelessWidget {
|
|||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.purple.withOpacity(0.4),
|
color: Colors.purple.withOpacity(0.2),
|
||||||
// child: Text(TextUtils.getDisplayTextFeture(i),
|
// child: Text(TextUtils.getDisplayTextFeture(i),
|
||||||
// style: const TextStyle(
|
// style: const TextStyle(
|
||||||
// fontSize: 16,
|
// fontSize: 16,
|
||||||
// fontWeight: FontWeight.bold,
|
// fontWeight: FontWeight.bold,
|
||||||
// color: Colors.red,
|
// color: Colors.red,
|
||||||
// ))),
|
// ))),
|
||||||
child: Text(
|
child: Stack(
|
||||||
|
children: <Widget>[
|
||||||
|
// Text with white outline
|
||||||
|
Text(
|
||||||
TextUtils.getDisplayTextFeture(i),
|
TextUtils.getDisplayTextFeture(i),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
// アウトラインの色と幅を設定
|
|
||||||
foreground: Paint()
|
foreground: Paint()
|
||||||
..style = PaintingStyle.stroke
|
..style = PaintingStyle.stroke
|
||||||
..strokeWidth = 1
|
..strokeWidth = 1
|
||||||
..color = Colors.black,
|
..color = Colors.white,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
// Text with black fill
|
||||||
|
Text(
|
||||||
|
TextUtils.getDisplayTextFeture(i),
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user