fix display text issue

This commit is contained in:
Mohamed Nouffer
2023-09-15 12:05:05 +05:30
parent cac0c1065f
commit 14c8cb6f70
3 changed files with 21 additions and 5 deletions

View File

@ -223,9 +223,9 @@ class CameraPage extends StatelessWidget {
appBar: destinationController.is_in_rog.value &&
destinationController.rogaining_counted.value == true
? AppBar(
title: destination!.cp == -1
title: destination.cp == -1
? Text("finishing_rogaining".tr)
: Text("${destination!.sub_loc_id} : ${destination!.name}".tr),
: Text("${destination.sub_loc_id} : ${destination.name}"),
leading: IconButton(
icon: Text("cancel".tr),
onPressed: () {
@ -240,7 +240,7 @@ class CameraPage extends StatelessWidget {
centerTitle: true,
)
: AppBar(
title: const Text("チェックポイント"),
title: Text("${destination.sub_loc_id} : ${destination.name}"),
),
body: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,