|
|
@ -28,7 +28,8 @@ Widget regionTemplate(variant, chosenLayout, nextPage, writeToLog) {
|
|
|
|
child: ElevatedButton(
|
|
|
|
child: ElevatedButton(
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
chosenRegion = variant;
|
|
|
|
chosenRegion = variant;
|
|
|
|
writeToLog("Chosen Region: ${chosenRegion.location}");
|
|
|
|
writeToLog(
|
|
|
|
|
|
|
|
"Chosen Region: ${chosenRegion.location.replaceAll("_", " ")}");
|
|
|
|
nextPage();
|
|
|
|
nextPage();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
style: TextButton.styleFrom(
|
|
|
@ -38,7 +39,7 @@ Widget regionTemplate(variant, chosenLayout, nextPage, writeToLog) {
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
variant.location,
|
|
|
|
variant.location.replaceAll("_", " "),
|
|
|
|
style: const TextStyle(
|
|
|
|
style: const TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -65,7 +66,8 @@ Widget locationTemplate(location, setChosenLocation, writeToLog) {
|
|
|
|
child: ElevatedButton(
|
|
|
|
child: ElevatedButton(
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
setChosenLocation(location);
|
|
|
|
setChosenLocation(location);
|
|
|
|
writeToLog("Chosen location: ${location.name}");
|
|
|
|
writeToLog(
|
|
|
|
|
|
|
|
"Chosen location: ${location.name.replaceAll("_", " ")}");
|
|
|
|
},
|
|
|
|
},
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
primary: Colors.white,
|
|
|
|
primary: Colors.white,
|
|
|
@ -74,7 +76,7 @@ Widget locationTemplate(location, setChosenLocation, writeToLog) {
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
location.name,
|
|
|
|
location.name.replaceAll("_", " "),
|
|
|
|
style: const TextStyle(
|
|
|
|
style: const TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
),
|
|
|
|
),
|
|
|
|