From 45ef09a6132b16710788ebeff3120008a267c0a4 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Sun, 22 Jan 2023 18:43:08 +0530 Subject: [PATCH] update display text --- lib/utils/text_util.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/utils/text_util.dart b/lib/utils/text_util.dart index e20963f..2d4f7b0 100644 --- a/lib/utils/text_util.dart +++ b/lib/utils/text_util.dart @@ -7,13 +7,13 @@ class TextUtils{ static String getDisplayTextFeture(GeoJsonFeature f){ RegExp regex = RegExp(r'([.]*0)(?!.*\d)'); String txt = ""; - if(f.properties!["cp"] > 0){ - //print("-- sub-- ${f.properties!["cp"]} ----"); - txt = "${f.properties!["cp"].toString().replaceAll(regex, '')}"; - } - if(f.properties!["buy_point"] != null && f.properties!["buy_point"] > 0){ + // if(f.properties!["cp"] > 0){ + // //print("-- sub-- ${f.properties!["cp"]} ----"); + // txt = "${f.properties!["cp"].toString().replaceAll(regex, '')}"; + // } + //if(f.properties!["buy_point"] != null && f.properties!["buy_point"] > 0){ txt = txt + "[${f.properties!["sub_loc_id"]}]"; - } + //} return txt; }