updated messages
This commit is contained in:
@ -21,9 +21,9 @@ ImageProvider getFinishImage() {
|
|||||||
class CameraPage extends StatelessWidget {
|
class CameraPage extends StatelessWidget {
|
||||||
bool? manulaCheckin = false;
|
bool? manulaCheckin = false;
|
||||||
bool? buyPointPhoto = false;
|
bool? buyPointPhoto = false;
|
||||||
Destination? destination;
|
Destination destination;
|
||||||
Destination? dbDest;
|
Destination? dbDest;
|
||||||
CameraPage({Key? key, this.destination, this.dbDest, this.manulaCheckin, this.buyPointPhoto})
|
CameraPage({Key? key,required this.destination, this.dbDest, this.manulaCheckin, this.buyPointPhoto})
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
DestinationController destinationController =
|
DestinationController destinationController =
|
||||||
Get.find<DestinationController>();
|
Get.find<DestinationController>();
|
||||||
@ -44,23 +44,21 @@ class CameraPage extends StatelessWidget {
|
|||||||
destinationController.openCamera(context, destination);
|
destinationController.openCamera(context, destination);
|
||||||
},
|
},
|
||||||
child: destinationController.photos.isNotEmpty
|
child: destinationController.photos.isNotEmpty
|
||||||
? const Text("再撮影")
|
? const Text("買い物なし")
|
||||||
: const Text("撮影"))),
|
: const Text("撮影"))),
|
||||||
Obx(() => destinationController.photos.isNotEmpty
|
Obx(() => destinationController.photos.isNotEmpty
|
||||||
? ElevatedButton(
|
? ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(backgroundColor: Colors.red),
|
style: ElevatedButton.styleFrom(backgroundColor: Colors.red),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
print(
|
|
||||||
"##### current destination ${indexController.currentDestinationFeature[0].sub_loc_id} #######");
|
|
||||||
await destinationController.makeCheckin(
|
await destinationController.makeCheckin(
|
||||||
destination!,
|
destination,
|
||||||
true,
|
true,
|
||||||
destinationController.photos[0].path);
|
destinationController.photos[0].path);
|
||||||
Get.back();
|
Get.back();
|
||||||
destinationController.rogaining_counted.value = true;
|
destinationController.rogaining_counted.value = true;
|
||||||
destinationController.skip_gps = false;
|
destinationController.skip_gps = false;
|
||||||
destinationController.is_photo_shoot.value = false;
|
destinationController.is_photo_shoot.value = false;
|
||||||
Get.snackbar("チェックインした", "正常にチェックインしました");
|
Get.snackbar("チェックインしました。", "${destination!.sub_loc_id} : ${destination!.name}");
|
||||||
},
|
},
|
||||||
child: const Text("チェックイン"))
|
child: const Text("チェックイン"))
|
||||||
: Container())
|
: Container())
|
||||||
@ -169,7 +167,7 @@ class CameraPage extends StatelessWidget {
|
|||||||
destinationController.rogaining_counted.value = true;
|
destinationController.rogaining_counted.value = true;
|
||||||
destinationController.skip_gps = false;
|
destinationController.skip_gps = false;
|
||||||
destinationController.is_photo_shoot.value = false;
|
destinationController.is_photo_shoot.value = false;
|
||||||
Get.snackbar("追加した", "領収書の写真を追加しました");
|
Get.snackbar("お買い物加点を行いました。", "${destination!.sub_loc_id} : ${destination!.name}");
|
||||||
},
|
},
|
||||||
child: const Text("レシートの写真を撮る"))
|
child: const Text("レシートの写真を撮る"))
|
||||||
: Container())
|
: Container())
|
||||||
@ -227,7 +225,7 @@ class CameraPage extends StatelessWidget {
|
|||||||
? AppBar(
|
? AppBar(
|
||||||
title: destination!.cp == -1
|
title: destination!.cp == -1
|
||||||
? Text("finishing_rogaining".tr)
|
? Text("finishing_rogaining".tr)
|
||||||
: Text("cp_pls_take_photo".tr),
|
: Text("${destination!.sub_loc_id} : ${destination!.name}".tr),
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Text("cancel".tr),
|
icon: Text("cancel".tr),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
@ -261,6 +259,10 @@ class CameraPage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Padding(
|
||||||
|
padding:const EdgeInsets.symmetric(vertical:8.0),
|
||||||
|
child: destinationController.photos.isEmpty == true ? Text("撮影してチェックインしてください。") : Text("チェックインをタップしてください。") ,
|
||||||
|
),
|
||||||
getAction(context),
|
getAction(context),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -363,7 +365,7 @@ class BuyPointCamera extends StatelessWidget {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(
|
title: Text(
|
||||||
"CPです。撮影してください。\n ${destination.sub_loc_id} : ${destination.location_id}",
|
"${destination.sub_loc_id} : ${destination.name}",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Column(
|
body: Column(
|
||||||
@ -383,9 +385,9 @@ class BuyPointCamera extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
const Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: EdgeInsets.all(8.0),
|
||||||
child: const Text("チェックインしました。"),
|
child: Text("チェックインをタップしてください。"),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
@ -407,7 +409,7 @@ class BuyPointCamera extends StatelessWidget {
|
|||||||
destinationController.rogaining_counted.value = true;
|
destinationController.rogaining_counted.value = true;
|
||||||
destinationController.skip_gps = false;
|
destinationController.skip_gps = false;
|
||||||
destinationController.is_photo_shoot.value = false;
|
destinationController.is_photo_shoot.value = false;
|
||||||
Get.snackbar("追加した", "領収書の写真を追加しました");
|
Get.snackbar("チェックインしました。", "${destination.sub_loc_id} : ${destination.name}");
|
||||||
},
|
},
|
||||||
child: const Text("チェックイン"))
|
child: const Text("チェックイン"))
|
||||||
: Container())
|
: Container())
|
||||||
|
|||||||
@ -174,7 +174,7 @@ class DestinationController extends GetxController {
|
|||||||
context: Get.context!,
|
context: Get.context!,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
builder: ((context) =>
|
builder: ((context) =>
|
||||||
CameraPage(destination: dss))).whenComplete(() {
|
CameraPage(destination: d))).whenComplete(() {
|
||||||
skip_gps = false;
|
skip_gps = false;
|
||||||
chekcs = 0;
|
chekcs = 0;
|
||||||
is_in_checkin.value = false;
|
is_in_checkin.value = false;
|
||||||
@ -307,7 +307,7 @@ class DestinationController extends GetxController {
|
|||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
builder: ((context) => CameraPage(
|
builder: ((context) => CameraPage(
|
||||||
buyPointPhoto: true,
|
buyPointPhoto: true,
|
||||||
destination: dss,
|
destination: d,
|
||||||
dbDest: ds.first,
|
dbDest: ds.first,
|
||||||
))).whenComplete(() {
|
))).whenComplete(() {
|
||||||
skip_gps = false;
|
skip_gps = false;
|
||||||
@ -340,7 +340,7 @@ class DestinationController extends GetxController {
|
|||||||
context: Get.context!,
|
context: Get.context!,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
builder: ((context) => CameraPage(
|
builder: ((context) => CameraPage(
|
||||||
destination: dss,
|
destination: d,
|
||||||
))).whenComplete(() {
|
))).whenComplete(() {
|
||||||
skip_gps = false;
|
skip_gps = false;
|
||||||
chekcs = 0;
|
chekcs = 0;
|
||||||
|
|||||||
@ -49,16 +49,15 @@ class _HistoryPageState extends State<HistoryPage> {
|
|||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(dests[index].name ?? ""),
|
title: Text(dests[index].name ?? ""),
|
||||||
subtitle:
|
subtitle:
|
||||||
Text(dests[index].address ?? ""),
|
Text("${dests[index].sub_loc_id} : ${dests[index].name}"),
|
||||||
leading: dests[index].checkin_image != null
|
leading: dests[index].checkin_image != null
|
||||||
? Container(width: 100, height: 100, child: Image.file(File(dests[index].checkin_image!)))
|
? Row(
|
||||||
|
children: [
|
||||||
|
Container(width: 100, height: 100, child: Image.file(File(dests[index].checkin_image!))),
|
||||||
|
Container(width: 100, height: 100, child: Image.file(File(dests[index].buypoint_image!)))
|
||||||
|
],
|
||||||
|
)
|
||||||
: Container(),
|
: Container(),
|
||||||
trailing: ElevatedButton(
|
|
||||||
child: Text(dests[index].cp.toString()),
|
|
||||||
style: ElevatedButton.styleFrom(shape: CircleBorder()),
|
|
||||||
onPressed: () {
|
|
||||||
|
|
||||||
},),
|
|
||||||
);
|
);
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -136,10 +136,6 @@ class AppPages {
|
|||||||
name: Routes.CHANGE_PASSWORD,
|
name: Routes.CHANGE_PASSWORD,
|
||||||
page: () => ChangePasswordPage(),
|
page: () => ChangePasswordPage(),
|
||||||
),
|
),
|
||||||
GetPage(
|
|
||||||
name: Routes.CAMERA_PAGE,
|
|
||||||
page: () => CameraPage(),
|
|
||||||
),
|
|
||||||
GetPage(
|
GetPage(
|
||||||
name: Routes.PROGRESS,
|
name: Routes.PROGRESS,
|
||||||
page: () => const ProgressPage(),
|
page: () => const ProgressPage(),
|
||||||
|
|||||||
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.0.16+16
|
version: 1.0.18+18
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.1.0 <4.0.0'
|
sdk: '>=3.1.0 <4.0.0'
|
||||||
|
|||||||
Reference in New Issue
Block a user