added prj editing page, must change to dialog bcz page too big
All checks were successful
Build CI / AMD64 Build (push) Successful in 3m23s
Build CI / ARM64 Build (push) Successful in 7m16s

This commit is contained in:
2026-02-15 19:06:08 +05:30
parent 985d7e5e21
commit ec3e69ffa9
8 changed files with 203 additions and 32 deletions

View File

@@ -8,7 +8,6 @@ class Editor {
final String name;
final String command;
final String commandTemplate;
// final Icon icon;
const Editor(
this.sname,
@@ -39,6 +38,7 @@ class Editor {
Map<String, dynamic> toJson() {
return {
"sname": sname,
"name": name,
"command": command,
"commandTemplate": commandTemplate,
@@ -50,7 +50,8 @@ class Editor {
if (!data.containsKey("name") ||
!data.containsKey("command") ||
!data.containsKey("commandTemplate") ||
!data.containsKey("id")) {
!data.containsKey("id") ||
!data.containsKey("sname")) {
print("Found invalid editor config when parsing: $data");
return Editor("!!", "null", "null", "null", "null");
}