更新了当前的版本 修改int 为num类型,以暂时解决dartweb中1.0会被认为是int的问题

This commit is contained in:
Caijinglong
2018-08-09 17:58:29 +08:00
parent a0b0606c9d
commit b507386ccc

View File

@@ -174,7 +174,7 @@ class ListField extends Field {
type = "${ListField(item, "").typeString}";
} else if (item is Map<String, dynamic>) {
type = "${firstLetterUpper(nameString)}";
} else if (item is int) {
} else if (item is num) {
type = "int";
} else if (item is double) {
type = "double";