Erweiterungen

This commit is contained in:
Sven committed 2024-01-16 12:23:52 +01:00
1 parent ed5761a847
commit e0d66ce3b1
6 files changed
+84 -44

No files matched your search

+4 -3
View File
@@ -38,7 +38,8 @@ class MainPage extends ContentViewWidget {
Future<HeaderInfo> getHeaderInfo(BuildContext context) async {
return HeaderInfo(
titleWidget: Container(
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 3),
height: 100,
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 0),
child: Column(children: [
ValueListenableBuilder<String>(
valueListenable: _zipValueNotifier,
@@ -47,7 +48,7 @@ class MainPage extends ContentViewWidget {
value,
style: const TextStyle(
color: Colors.white,
fontSize: 18.0,
fontSize: 25.0,
),
);
},
@@ -60,7 +61,7 @@ class MainPage extends ContentViewWidget {
value,
style: const TextStyle(
color: Colors.white,
fontSize: 18.0,
fontSize: 25.0,
),
);
},
+10 -6
View File
@@ -92,6 +92,8 @@ class _TaskListPageState extends State<TaskListPage> {
for (int i=0; i<_taskList.length; i++) {
var taskInfo = _taskList[i];
var textColor = isTaskActive(i) ? Colors.black : const Color(0x33000000);
steps.add(
ListTile(
minVerticalPadding: 0,
@@ -136,8 +138,8 @@ class _TaskListPageState extends State<TaskListPage> {
Text(
taskInfo.task.topic,
textAlign: TextAlign.left,
style: const TextStyle(
color: Colors.blue,
style: TextStyle(
color: textColor,
fontSize: 15.0,
),
),
@@ -145,8 +147,8 @@ class _TaskListPageState extends State<TaskListPage> {
Text(
taskInfo.additionalText ?? '',
textAlign: TextAlign.left,
style: const TextStyle(
color: Colors.blue,
style: TextStyle(
color: textColor,
fontSize: 12.0,
),
),
@@ -156,7 +158,9 @@ class _TaskListPageState extends State<TaskListPage> {
),
),
onTap: () {
_processTask(taskInfo);
if (isTaskActive(i)) {
_processTask(taskInfo);
}
},
),
);
@@ -174,7 +178,7 @@ class _TaskListPageState extends State<TaskListPage> {
taskInfo = TaskInfo();
taskInfo.answer = null;
taskInfo.additionalText = null;
taskInfo.completed = task.opt as bool;
taskInfo.completed = task.opt != null ? task.opt! : false;
}
taskInfo.task = task;
+14 -11
View File
@@ -98,19 +98,22 @@ class _TourListPageState extends State<TourListPage> {
const SizedBox(width: 10),
SizedBox(
width: 100,
child: ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
side: const BorderSide(color: Colors.grey),
child: Visibility(
visible: widget.job.tours[0].pos != null,
child: ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
side: const BorderSide(color: Colors.grey),
),
),
backgroundColor: MaterialStateProperty.all<Color>(Colors.lightGreen),
foregroundColor: MaterialStateProperty.all<Color>(Colors.black),
),
backgroundColor: MaterialStateProperty.all<Color>(Colors.lightGreen),
foregroundColor: MaterialStateProperty.all<Color>(Colors.black),
),
onPressed: () => { showMapPopup(context, widget.job.tours[0], widget.job.tours)},
child: const Text("Karte")))
onPressed: () => { showMapPopup(context, widget.job.tours[0], widget.job.tours)},
child: const Text("Karte")),
))
],
),
Expanded(