update label to black and white

This commit is contained in:
2024-01-08 15:14:44 +05:30
parent c67914f286
commit 0b5ce75d6c

View File

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