From 32ae1f52494c69713a2156f80629c8b8c5fc9a24 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Thu, 9 Nov 2023 12:20:49 +0530 Subject: [PATCH] update opacity of point label --- lib/widgets/map_widget.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/widgets/map_widget.dart b/lib/widgets/map_widget.dart index ec5f6f7..19acc90 100644 --- a/lib/widgets/map_widget.dart +++ b/lib/widgets/map_widget.dart @@ -93,14 +93,17 @@ class MapWidget extends StatelessWidget { ], )), ), - Container( - color: Colors.white, - child: Text(TextUtils.getDisplayTextFeture(i), - style: const TextStyle( - fontSize: 16, - fontWeight: FontWeight.bold, - color: Colors.red, - ))), + Opacity( + opacity: 0.6, + child: Container( + color: Colors.white.withOpacity(0.6), + child: Text(TextUtils.getDisplayTextFeture(i), + style: const TextStyle( + fontSize: 16, + fontWeight: FontWeight.bold, + color: Colors.red, + ))), + ), ], ); }