added proper editor buttons to prj card, APP BROKEN HERE.
This commit is contained in:
@@ -3,14 +3,14 @@ import "dart:io";
|
||||
import "package:path/path.dart" as p;
|
||||
|
||||
class Project {
|
||||
final String name;
|
||||
final String language;
|
||||
final File path;
|
||||
final String? e0;
|
||||
final String? e1;
|
||||
final String? e2;
|
||||
final String? e3;
|
||||
final bool isGit;
|
||||
String name;
|
||||
String language;
|
||||
File path;
|
||||
String? e0;
|
||||
String? e1;
|
||||
String? e2;
|
||||
String? e3;
|
||||
bool isGit;
|
||||
|
||||
Project(
|
||||
this.name,
|
||||
@@ -76,6 +76,40 @@ class Project {
|
||||
);
|
||||
}
|
||||
|
||||
String? getEditor(enumb) {
|
||||
switch (enumb) {
|
||||
case 0:
|
||||
return e0;
|
||||
case 1:
|
||||
return e1;
|
||||
case 2:
|
||||
return e2;
|
||||
case 3:
|
||||
return e3;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void setEditor(int enumb, String? edt) {
|
||||
switch (enumb) {
|
||||
case 0:
|
||||
e0 = edt;
|
||||
break;
|
||||
case 1:
|
||||
e1 = edt;
|
||||
break;
|
||||
case 2:
|
||||
e2 = edt;
|
||||
break;
|
||||
case 3:
|
||||
e3 = edt;
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
// bool validatePath(){
|
||||
// return File
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user