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

+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;