Update task_page.dart

This commit is contained in:
jyuesong
2022-01-14 11:11:26 +08:00
parent 363d89dab2
commit 96b9d720a5

View File

@@ -162,7 +162,7 @@ class TaskItemCell extends StatelessWidget {
}, },
), ),
QLCupertinoContextMenuAction( QLCupertinoContextMenuAction(
child: Text("查看日志"), child: const Text("查看日志"),
onPressed: () { onPressed: () {
Navigator.of(context).pop(); Navigator.of(context).pop();
logCron(context, ref); logCron(context, ref);
@@ -238,7 +238,9 @@ class TaskItemCell extends StatelessWidget {
Row( Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Text( Material(
color:Colors.transparent,
child: Text(
bean.name ?? "", bean.name ?? "",
maxLines: 1, maxLines: 1,
style: TextStyle( style: TextStyle(
@@ -247,6 +249,7 @@ class TaskItemCell extends StatelessWidget {
fontSize: 18, fontSize: 18,
), ),
), ),
),
const SizedBox( const SizedBox(
width: 5, width: 5,
), ),
@@ -260,7 +263,9 @@ class TaskItemCell extends StatelessWidget {
), ),
), ),
const Spacer(), const Spacer(),
Text( Material(
color:Colors.transparent,
child: Text(
(bean.lastExecutionTime == null || bean.lastExecutionTime == 0) ? "-" : Utils.formatMessageTime(bean.lastExecutionTime!), (bean.lastExecutionTime == null || bean.lastExecutionTime == 0) ? "-" : Utils.formatMessageTime(bean.lastExecutionTime!),
maxLines: 1, maxLines: 1,
style: const TextStyle( style: const TextStyle(
@@ -269,12 +274,15 @@ class TaskItemCell extends StatelessWidget {
fontSize: 12, fontSize: 12,
), ),
), ),
),
], ],
), ),
const SizedBox( const SizedBox(
height: 8, height: 8,
), ),
Text( Material(
color:Colors.transparent,
child: Text(
bean.schedule ?? "", bean.schedule ?? "",
maxLines: 1, maxLines: 1,
style: const TextStyle( style: const TextStyle(
@@ -283,6 +291,7 @@ class TaskItemCell extends StatelessWidget {
fontSize: 12, fontSize: 12,
), ),
), ),
),
], ],
), ),
), ),