添加任务详情

This commit is contained in:
jyuesong
2022-01-19 14:13:16 +08:00
parent 8a85a838e7
commit 38a6790c51
4 changed files with 445 additions and 173 deletions

View File

@@ -354,8 +354,11 @@ class TaskItemCell extends StatelessWidget {
);
}
startCron(BuildContext context, WidgetRef ref) {
ref.read(taskProvider).runCrons(bean.sId!);
startCron(BuildContext context, WidgetRef ref) async {
await ref.read(taskProvider).runCrons(bean.sId!);
WidgetsBinding.instance?.addPostFrameCallback((timeStamp) {
logCron(context, ref);
});
}
stopCron(BuildContext context, WidgetRef ref) {
@@ -381,6 +384,7 @@ class TaskItemCell extends StatelessWidget {
),
onPressed: () {
Navigator.of(context).pop();
ref.read(taskProvider).loadData(false);
},
),
],