From 96128029969699daa72ea577d6ebac2eaee4ff75 Mon Sep 17 00:00:00 2001 From: jyuesong <425698907@qq.com> Date: Fri, 21 Jan 2022 16:45:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A0=E6=B3=95=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E4=BB=BB=E5=8A=A1=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/module/others/scripts/script_bean.dart | 22 ++-------------------- lib/module/task/task_page.dart | 4 ++-- 2 files changed, 4 insertions(+), 22 deletions(-) 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(