bug fixes
This commit is contained in:
@ -175,4 +175,4 @@ SPEC CHECKSUMS:
|
|||||||
|
|
||||||
PODFILE CHECKSUM: a1c2f8dde3796ecc1697a15e7c75eb5205d8a740
|
PODFILE CHECKSUM: a1c2f8dde3796ecc1697a15e7c75eb5205d8a740
|
||||||
|
|
||||||
COCOAPODS: 1.12.0
|
COCOAPODS: 1.12.1
|
||||||
|
|||||||
@ -131,6 +131,62 @@ class DestinationController extends GetxController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CallforCheckin(Destination d){
|
||||||
|
bool auto_checkin = d.auto_checkin == 0 ? false : 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;
|
||||||
|
}
|
||||||
|
skip_gps = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
print("--- hidden loc ${d.hidden_location} ----");
|
||||||
|
// ask for checkin
|
||||||
|
if(d.hidden_location != null && d.hidden_location == 0 && is_in_rog.value == true && d.cp != -1){
|
||||||
|
chekcs = 3;
|
||||||
|
is_in_checkin.value = true;
|
||||||
|
photos.clear();
|
||||||
|
showModalBottomSheet(context: Get.context!, isScrollControlled: true,
|
||||||
|
builder:((context) => CameraPage(destination: d,))
|
||||||
|
).whenComplete((){
|
||||||
|
skip_gps = false;
|
||||||
|
rogaining_counted.value =true;
|
||||||
|
chekcs = 0;
|
||||||
|
is_in_checkin.value = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Get.snackbar("始まっていない", "ロゲイニングを始める必要があります");
|
||||||
|
}
|
||||||
|
//else if(is_in_rog.value == true && d.cp != -1){
|
||||||
|
// chekcs = 4;
|
||||||
|
// is_in_checkin.value = true;
|
||||||
|
// showMaterialModalBottomSheet(
|
||||||
|
// expand: true,
|
||||||
|
// context: Get.context!,
|
||||||
|
// backgroundColor: Colors.transparent,
|
||||||
|
// builder: (context) => BottomSheetNew()
|
||||||
|
// ).whenComplete(() {
|
||||||
|
// skip_gps = false;
|
||||||
|
// chekcs = 0;
|
||||||
|
// is_in_checkin.value = false;
|
||||||
|
// });
|
||||||
|
// showModalBottomSheet(context: Get.context!, isScrollControlled: true,
|
||||||
|
// builder:((context) => BottomSheetNew())
|
||||||
|
// ).whenComplete((){
|
||||||
|
// skip_gps = false;
|
||||||
|
// chekcs = 0;
|
||||||
|
// is_in_checkin.value = false;
|
||||||
|
// });
|
||||||
|
//}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void startTimer(Destination d, double distance) async {
|
void startTimer(Destination d, double distance) async {
|
||||||
print("=== passed dest is ${d.location_id} ${d.checkedin} ====");
|
print("=== passed dest is ${d.location_id} ${d.checkedin} ====");
|
||||||
skip_gps = true;
|
skip_gps = true;
|
||||||
@ -204,55 +260,7 @@ class DestinationController extends GetxController {
|
|||||||
print("---- location checkin radious ${d.checkin_radious} ----");
|
print("---- location checkin radious ${d.checkin_radious} ----");
|
||||||
print("---- already checked in ${location_already_checked_in} ----");
|
print("---- already checked in ${location_already_checked_in} ----");
|
||||||
if(checkin_radious >= distance && location_already_checked_in == false && is_in_rog.value == true){
|
if(checkin_radious >= distance && location_already_checked_in == false && is_in_rog.value == true){
|
||||||
if(auto_checkin){
|
CallforCheckin(d);
|
||||||
if(!checking_in){
|
|
||||||
print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ make checkin ${d.sub_loc_id}@@@@@@@@@@@");
|
|
||||||
makeCheckin(d, true,"");
|
|
||||||
if(d.cp != -1){
|
|
||||||
rogaining_counted.value =true;
|
|
||||||
}
|
|
||||||
skip_gps = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
print("--- hidden loc ${d.hidden_location} ----");
|
|
||||||
// ask for checkin
|
|
||||||
if(d.hidden_location != null && d.hidden_location == 0 && is_in_rog.value == true && d.cp != -1){
|
|
||||||
chekcs = 3;
|
|
||||||
is_in_checkin.value = true;
|
|
||||||
photos.clear();
|
|
||||||
showModalBottomSheet(context: Get.context!, isScrollControlled: true,
|
|
||||||
builder:((context) => CameraPage(destination: d,))
|
|
||||||
).whenComplete((){
|
|
||||||
skip_gps = false;
|
|
||||||
rogaining_counted.value =true;
|
|
||||||
chekcs = 0;
|
|
||||||
is_in_checkin.value = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if(is_in_rog.value == true && d.cp != -1){
|
|
||||||
chekcs = 4;
|
|
||||||
is_in_checkin.value = true;
|
|
||||||
showMaterialModalBottomSheet(
|
|
||||||
expand: true,
|
|
||||||
context: Get.context!,
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
builder: (context) => BottomSheetNew()
|
|
||||||
).whenComplete(() {
|
|
||||||
skip_gps = false;
|
|
||||||
chekcs = 0;
|
|
||||||
is_in_checkin.value = false;
|
|
||||||
});
|
|
||||||
// showModalBottomSheet(context: Get.context!, isScrollControlled: true,
|
|
||||||
// builder:((context) => BottomSheetNew())
|
|
||||||
// ).whenComplete((){
|
|
||||||
// skip_gps = false;
|
|
||||||
// chekcs = 0;
|
|
||||||
// is_in_checkin.value = false;
|
|
||||||
// });
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
print("---- cp --- ${d.cp} -----");
|
print("---- cp --- ${d.cp} -----");
|
||||||
print("--- at goal ${is_at_goal} ---");
|
print("--- at goal ${is_at_goal} ---");
|
||||||
|
|||||||
@ -427,6 +427,13 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed:() async {
|
||||||
|
destinationController.CallforCheckin(destinationController.festuretoDestination(indexController.currentFeature[0]));
|
||||||
|
},
|
||||||
|
child:Text("チェックイン")
|
||||||
|
),
|
||||||
|
SizedBox(width: 16,),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed:() async {
|
onPressed:() async {
|
||||||
GeoJsonFeature<GeoJsonMultiPoint> mp = indexController.currentFeature[0] as GeoJsonFeature<GeoJsonMultiPoint>;
|
GeoJsonFeature<GeoJsonMultiPoint> mp = indexController.currentFeature[0] as GeoJsonFeature<GeoJsonMultiPoint>;
|
||||||
@ -445,7 +452,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
|
|
||||||
destinationController.destinationMatrixFromCurrentPoint([ds, tp]);
|
destinationController.destinationMatrixFromCurrentPoint([ds, tp]);
|
||||||
},
|
},
|
||||||
child:Text("ここへ行く")),
|
child:Text("ここへ行く")
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 8.0,),
|
SizedBox(height: 8.0,),
|
||||||
|
|||||||
@ -33,7 +33,6 @@ class MapWidget extends StatelessWidget {
|
|||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
GeoJsonFeature? fs = indexController.getFeatureForLatLong(p.geoSerie!.geoPoints[0].latitude, p.geoSerie!.geoPoints[0].longitude);
|
GeoJsonFeature? fs = indexController.getFeatureForLatLong(p.geoSerie!.geoPoints[0].latitude, p.geoSerie!.geoPoints[0].longitude);
|
||||||
print("------- fs ${fs}------");
|
|
||||||
if(fs != null){
|
if(fs != null){
|
||||||
indexController.currentFeature.clear();
|
indexController.currentFeature.clear();
|
||||||
indexController.currentFeature.add(fs);
|
indexController.currentFeature.add(fs);
|
||||||
@ -154,7 +153,7 @@ class MapWidget extends StatelessWidget {
|
|||||||
}).toList(),
|
}).toList(),
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
Center(child: CircularProgressIndicator())
|
const Center(child: CircularProgressIndicator())
|
||||||
,
|
,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user