Related Project added to TaskType

This commit is contained in:
Sewmina
2022-03-25 08:13:39 +05:30
parent ac9609b3b6
commit f64ac7efbd
6 changed files with 199 additions and 88 deletions

View File

@@ -25,16 +25,18 @@ class Category{
class TaskType{
TaskType(this.id, this.name, this.category, [this.cat = null]);
TaskType(this.id, this.name, this.category,{this.relatedProject, this.cat});
String id;
String name;
String category;
Category? cat;
Project? relatedProject;
static String colId = "id";
static String colName="name";
static String colCategory = "category_id";
static String colRelatedProject = "related_project";
}
class Activity{
@@ -108,6 +110,7 @@ class Project{
Project(this.name, this.category, this.steps,this.eta, this.deadline,{this.cat});
String name;
String getName()=> name.replaceAll(User.username, "");
String category;
Category? cat;
List<ProjectStep> steps;