Snackbar の色を変更。ロゲ開始時のエラーを回避。

This commit is contained in:
2024-04-27 10:48:21 +09:00
parent 72267f29bb
commit aada6262fe
21 changed files with 253 additions and 742 deletions

View File

@ -243,7 +243,10 @@ class CameraPage extends StatelessWidget {
destinationController.skipGps = false;
destinationController.isPhotoShoot.value = false;
Get.snackbar("チェックインしました。",
"${destination.sub_loc_id} : ${destination.name}");
"${destination.sub_loc_id} : ${destination.name}",
backgroundColor: Colors.green,
colorText: Colors.white
);
},
child: const Text("チェックイン"))
: Container())
@ -307,12 +310,18 @@ class CameraPage extends StatelessWidget {
if (value['status'] == 'OK') {
Get.back();
destinationController.skipGps = false;
Get.snackbar("目標が保存されました", "目標が正常に追加されました");
Get.snackbar("目標が保存されました", "目標が正常に追加されました",
backgroundColor: Colors.green,
colorText: Colors.white
);
destinationController.resetRogaining(
isgoal: true);
} else {
//print("---- status ${value['status']} ---- ");
Get.snackbar("目標が追加されていません", "please_try_again");
Get.snackbar("目標が追加されていません", "please_try_again",
backgroundColor: Colors.green,
colorText: Colors.white
);
}
});
} on Exception catch (_) {
@ -358,7 +367,10 @@ class CameraPage extends StatelessWidget {
destinationController.skipGps = false;
destinationController.isPhotoShoot.value = false;
Get.snackbar("お買い物加点を行いました。",
"${destination.sub_loc_id} : ${destination.name}");
"${destination.sub_loc_id} : ${destination.name}",
backgroundColor: Colors.green,
colorText: Colors.white
);
},
child: const Text("レシートの写真を撮ってください"))
: Container())
@ -395,7 +407,10 @@ class CameraPage extends StatelessWidget {
destinationController.skipGps = false;
destinationController.isPhotoShoot.value = false;
Get.snackbar("お買い物加点を行いました。",
"${destination.sub_loc_id} : ${destination.name}");
"${destination.sub_loc_id} : ${destination.name}",
backgroundColor: Colors.green,
colorText: Colors.white
);
},
child: const Text("QRコードを読み取ってください"))
: Container())
@ -430,7 +445,10 @@ class CameraPage extends StatelessWidget {
Get.snackbar(
"チェックインしました",
indexController.currentDestinationFeature[0].name ??
"");
"",
backgroundColor: Colors.green,
colorText: Colors.white
);
},
child: const Text("チェックイン"))
: Container())
@ -677,7 +695,10 @@ class BuyPointCamera extends StatelessWidget {
destinationController.skipGps = false;
destinationController.isPhotoShoot.value = false;
Get.snackbar("お買い物加点を行いました",
"${destination.sub_loc_id} : ${destination.name}");
"${destination.sub_loc_id} : ${destination.name}",
backgroundColor: Colors.green,
colorText: Colors.white
);
},
child: const Text("完了"))
],