fix text display issue

This commit is contained in:
Mohamed Nouffer
2023-05-19 16:27:00 +05:30
parent 67a52c6f84
commit 08332d45d4
6 changed files with 8 additions and 7 deletions

View File

@ -94,7 +94,7 @@ class CameraPage extends StatelessWidget {
primary: Colors.red
),
onPressed: (){
print("##### current destination ${indexController.currentDestinationFeature[0].sub_loc_id} #######");
destinationController.makeCheckin(indexController.currentDestinationFeature[0], true, destinationController.photos[0].path);
Get.back();
destinationController.rogaining_counted.value = true;

View File

@ -206,6 +206,7 @@ class DestinationController extends GetxController {
if(checkin_radious >= distance && location_already_checked_in == false && is_in_rog.value == true){
if(auto_checkin){
if(!checking_in){
print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ make checkin ${d.sub_loc_id}@@@@@@@@@@@");
makeCheckin(d, true,"");
if(d.cp != -1){
rogaining_counted.value =true;
@ -369,7 +370,7 @@ class DestinationController extends GetxController {
for(final d in destinations){
print("--- check checkin for--loc_id- ${d.location_id}----");
print("--- check checkin for--loc_id- ${d.sub_loc_id}----");
double lat = d.lat!;
double lon = d.lon!;
@ -430,7 +431,7 @@ class DestinationController extends GetxController {
}
void makeCheckin(Destination destination, bool action, String imageurl) async {
//print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ressssss ${action}@@@@@@@@@@@");
print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ressssss ${destination.sub_loc_id}@@@@@@@@@@@");
DatabaseHelper db = DatabaseHelper.instance;
List<Destination> ddd = await db.getDestinationByLatLon(destination.lat!, destination.lon!);

View File

@ -193,7 +193,7 @@ class DestnationPage extends StatelessWidget {
if(destinationController.is_gps_selected.value){
destinationController.chekcs = 0;
destinationController.skip_gps = false;
destinationController.resetRogaining();
//destinationController.resetRogaining();
}
},
isSelected: [destinationController.is_gps_selected.value],

View File

@ -28,7 +28,7 @@ class TextUtils{
}
if(dp.buy_point != null && dp.buy_point! > 0){
print("^^^^^^^^^ ${dp.sub_loc_id}^^^^^^^^^^");
txt = "${dp.sub_loc_id}";
txt = "#${dp.cp.toString().replaceAll(regex, '')}(${dp.checkin_point.toString().replaceAll(regex, '')}+${dp.buy_point.toString().replaceAll(regex, '')})";
}
}
return txt;

View File

@ -607,7 +607,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
GeoJsonMultiPoint mp = indexController.currentFeature[0].geometry as GeoJsonMultiPoint;
LatLng pt = LatLng(mp.geoSerie!.geoPoints[0].latitude, mp.geoSerie!.geoPoints[0].longitude);
//print("----- ${indexController.currentFeature[0].properties} -----");
print("----- want to go sub location is ---- ${indexController.currentFeature[0].properties!["sub_loc_id"]} -----");
Destination dest = Destination(
name: indexController.currentFeature[0].properties!["location_name"],