diff --git a/lib/widgets/map_widget.dart b/lib/widgets/map_widget.dart index c32c90e..f5a4721 100644 --- a/lib/widgets/map_widget.dart +++ b/lib/widgets/map_widget.dart @@ -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: [ + // 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, + ), + ), + ], )), ), )