add scripts

This commit is contained in:
jyuesong
2022-01-18 13:09:29 +08:00
parent 1a72b9b5d7
commit 8aa41e577b
15 changed files with 506 additions and 154 deletions

View File

@@ -46,19 +46,27 @@ class _TaskLogPageState extends ConsumerState<TaskLogPage> {
title: Text(
item.name ?? "",
style: TextStyle(
color: ref.watch(themeProvider).themeColor.taskTitleColor(),
color: ref
.watch(themeProvider)
.themeColor
.taskTitleColor(),
fontSize: 16,
),
),
children: item.files!
.map((e) => ListTile(
onTap: () {
Navigator.of(context).pushNamed(Routes.routeTaskLogDetail, arguments: e);
Navigator.of(context).pushNamed(
Routes.routeTaskLogDetail,
arguments: e);
},
title: Text(
e ?? "",
e,
style: TextStyle(
color: ref.watch(themeProvider).themeColor.taskTitleColor(),
color: ref
.watch(themeProvider)
.themeColor
.taskTitleColor(),
fontSize: 14,
),
),
@@ -67,12 +75,16 @@ class _TaskLogPageState extends ConsumerState<TaskLogPage> {
)
: ListTile(
onTap: () {
Navigator.of(context).pushNamed(Routes.routeTaskLogDetail, arguments: item.name);
Navigator.of(context).pushNamed(Routes.routeTaskLogDetail,
arguments: item.name);
},
title: Text(
item.name ?? "",
style: TextStyle(
color: ref.watch(themeProvider).themeColor.taskTitleColor(),
color: ref
.watch(themeProvider)
.themeColor
.taskTitleColor(),
fontSize: 16,
),
),