mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
添加任务详情
This commit is contained in:
@@ -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);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user