initial commit

This commit is contained in:
2026-02-08 11:04:35 +05:30
parent a1287b696a
commit e1be0429bd
24 changed files with 1041 additions and 2 deletions

20
lib/models/editor.dart Normal file
View File

@@ -0,0 +1,20 @@
import "package:flutter/material.dart";
import "package:process_run/which.dart";
class Editor {
final String name;
final String command;
final String commandTemplate;
// final Icon icon;
const Editor(this.name, this.command, this.commandTemplate);
bool validateCommand() {
final String? fullPath = whichSync(command);
if (fullPath == null) {
return false;
} else {
return true;
}
}
}