added cancel buypoints

This commit is contained in:
Mohamed Nouffer
2023-09-15 17:19:26 +05:30
parent a2b055fe8b
commit f760294a39
3 changed files with 31 additions and 4 deletions

View File

@ -416,9 +416,15 @@ class BuyPointCamera extends StatelessWidget {
: const Text("撮影")),
const SizedBox(width: 10,),
ElevatedButton(
onPressed: () {
destinationController.openCamera(
context, destination);
onPressed: () async {
await destinationController.cancelBuyPoint(
destination);
Get.back();
destinationController.rogaining_counted.value =
true;
destinationController.skip_gps = false;
destinationController.is_photo_shoot.value =
false;
},
child: const Text("買い物なし"))
],