diff --git a/lib/module/others/scripts/script_bean.dart b/lib/module/others/scripts/script_bean.dart index 4370716..3e65f64 100644 --- a/lib/module/others/scripts/script_bean.dart +++ b/lib/module/others/scripts/script_bean.dart @@ -5,24 +5,14 @@ import 'package:json_conversion_annotation/json_conversion_annotation.dart'; class ScriptBean { String? title; String? value; - String? key; - double? mtime; bool? disabled; List? children; - ScriptBean( - {this.title, - this.value, - this.key, - this.mtime, - this.disabled, - this.children}); + ScriptBean({this.title, this.value, this.disabled, this.children}); ScriptBean.fromJson(Map json) { title = json['title']; value = json['value']; - key = json['key']; - mtime = json['mtime']; disabled = json['disabled']; if (json['children'] != null) { children = []; @@ -36,8 +26,6 @@ class ScriptBean { final Map data = new Map(); data['title'] = this.title; data['value'] = this.value; - data['key'] = this.key; - data['mtime'] = this.mtime; data['disabled'] = this.disabled; if (this.children != null) { data['children'] = this.children!.map((v) => v.toJson()).toList(); @@ -53,17 +41,13 @@ class ScriptBean { class ScriptChildren { String? title; String? value; - String? key; - double? mtime; String? parent; - ScriptChildren({this.title, this.value, this.key, this.mtime, this.parent}); + ScriptChildren({this.title, this.value, this.parent}); ScriptChildren.fromJson(Map json) { title = json['title']; value = json['value']; - key = json['key']; - mtime = json['mtime']; parent = json['parent']; } @@ -71,8 +55,6 @@ class ScriptChildren { final Map data = new Map(); data['title'] = this.title; data['value'] = this.value; - data['key'] = this.key; - data['mtime'] = this.mtime; data['parent'] = this.parent; return data; } diff --git a/lib/module/task/task_page.dart b/lib/module/task/task_page.dart index 5142303..13776fa 100644 --- a/lib/module/task/task_page.dart +++ b/lib/module/task/task_page.dart @@ -283,8 +283,8 @@ class TaskItemCell extends StatelessWidget { strokeWidth: 2, ), ), - const SizedBox( - width: 5, + SizedBox( + width: bean.status == 1 ? 0 : 5, ), Expanded( child: Material(