update image on camera page
This commit is contained in:
@ -431,51 +431,51 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
Obx(
|
||||
() => indexController
|
||||
.currentDestinationFeature.isNotEmpty &&
|
||||
indexController
|
||||
.currentDestinationFeature[0].cp ==
|
||||
-1 &&
|
||||
indexController.currentDestinationFeature[0]
|
||||
.checkedin ==
|
||||
false &&
|
||||
destinationController.isAtStart.value == true
|
||||
? ElevatedButton(
|
||||
onPressed: () async {
|
||||
await destinationController
|
||||
.resetRogaining();
|
||||
//print("~~~~ start button ~~~~");
|
||||
destinationController.isInRog.value = true;
|
||||
destinationController.addToRogaining(
|
||||
destinationController.currentLat,
|
||||
destinationController.currentLon,
|
||||
indexController
|
||||
.currentDestinationFeature[0]
|
||||
.location_id!);
|
||||
saveGameState();
|
||||
ExternalService()
|
||||
.startRogaining()
|
||||
.then((value) {
|
||||
Get.back();
|
||||
});
|
||||
},
|
||||
child: Text(
|
||||
// start
|
||||
indexController
|
||||
.currentDestinationFeature[
|
||||
0]
|
||||
.checkedin !=
|
||||
null ||
|
||||
indexController
|
||||
.currentDestinationFeature[
|
||||
0]
|
||||
.checkedin ==
|
||||
true
|
||||
? "ロゲイニングを開始"
|
||||
: "間違った目的地..."))
|
||||
: Container(),
|
||||
),
|
||||
// Obx(
|
||||
// () => indexController
|
||||
// .currentDestinationFeature.isNotEmpty &&
|
||||
// indexController
|
||||
// .currentDestinationFeature[0].cp ==
|
||||
// -1 &&
|
||||
// indexController.currentDestinationFeature[0]
|
||||
// .checkedin ==
|
||||
// false &&
|
||||
// destinationController.isAtStart.value == true
|
||||
// ? ElevatedButton(
|
||||
// onPressed: () async {
|
||||
// await destinationController
|
||||
// .resetRogaining();
|
||||
// //print("~~~~ start button ~~~~");
|
||||
// destinationController.isInRog.value = true;
|
||||
// destinationController.addToRogaining(
|
||||
// destinationController.currentLat,
|
||||
// destinationController.currentLon,
|
||||
// indexController
|
||||
// .currentDestinationFeature[0]
|
||||
// .location_id!);
|
||||
// saveGameState();
|
||||
// ExternalService()
|
||||
// .startRogaining()
|
||||
// .then((value) {
|
||||
// Get.back();
|
||||
// });
|
||||
// },
|
||||
// child: Text(
|
||||
// // start
|
||||
// indexController
|
||||
// .currentDestinationFeature[
|
||||
// 0]
|
||||
// .checkedin !=
|
||||
// null ||
|
||||
// indexController
|
||||
// .currentDestinationFeature[
|
||||
// 0]
|
||||
// .checkedin ==
|
||||
// true
|
||||
// ? "ロゲイニングを開始"
|
||||
// : "間違った目的地..."))
|
||||
// : Container(),
|
||||
// ),
|
||||
Obx(
|
||||
() => destinationController.isAtGoal.value == true &&
|
||||
destinationController
|
||||
|
||||
@ -194,7 +194,7 @@ class DestinationWidget extends StatelessWidget {
|
||||
|
||||
showModalBottomSheet(
|
||||
constraints: BoxConstraints.loose(
|
||||
Size(Get.width, Get.height * 0.75)),
|
||||
Size(Get.width, Get.height * 0.85)),
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
//builder:((context) => BottomSheetWidget())
|
||||
|
||||
@ -120,7 +120,7 @@ class _ListWidgetState extends State<ListWidget> {
|
||||
changeCurrentFeature(gf);
|
||||
showModalBottomSheet(
|
||||
constraints: BoxConstraints.loose(
|
||||
Size(Get.width, Get.height * 0.75)),
|
||||
Size(Get.width, Get.height * 0.85)),
|
||||
isScrollControlled: true,
|
||||
context: context,
|
||||
//builder: (context) => BottomSheetWidget(),
|
||||
|
||||
@ -45,7 +45,7 @@ class MapWidget extends StatelessWidget {
|
||||
|
||||
showModalBottomSheet(
|
||||
constraints:
|
||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.85)),
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
isDismissible: true,
|
||||
|
||||
Reference in New Issue
Block a user