代码格式优化完毕

This commit is contained in:
toly
2022-03-26 21:25:40 +08:00
parent 36b5adbd7b
commit 59f8125e1a
265 changed files with 1684 additions and 1494 deletions

View File

@@ -20,7 +20,7 @@ class $fontName {
String read = await fileCss.readAsString();
List<String> split = read.split(".icon-");
split.forEach((str) {
for (String str in split) {
if (str.contains("before")) {
List<String> split = str.split(":");
result += "static const IconData " +
@@ -29,7 +29,7 @@ class $fontName {
split[2].replaceAll("\"\\", "0x").split("\"")[0] +
", fontFamily: \"$fontName\");\n";
}
});
}
result+="}";
fileCss.delete();//删除css文件
@@ -43,7 +43,7 @@ class $fontName {
fonts:
- family: $fontName
fonts:
- asset: """+"$resDir/iconfont.ttf";
- asset: $resDir/iconfont.ttf""";
print("build OK:\n $config");
}