update image on camera page

This commit is contained in:
2023-11-07 17:17:47 +05:30
parent 7412d1e074
commit 7a154b4390
7 changed files with 94 additions and 53 deletions

View File

@ -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

View File

@ -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())

View File

@ -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(),

View File

@ -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,