Category

Configure

Category menu will showing on drawer menu and map page, you only need to configure it

Category(categoryId, "Category Name", categoryIcon);

categoryId : must same with category id at server category Name : You category name, it may be different with server categoryIcon : material icon only

We have two array here categories and headerCategories

static List<Category> headerCategories = [
  ... // will show for top menu drawer
];

static List<Category> categories = [
  ... // will show for bottom menu drawer
];

Add New

Please add new category on server side first https://the-city.gitbook.io/docs/admin-panel/add-new-category

After its success you can add your new category at static array

static List<Category> categories = [
  ... // Add you new category here
];

Last updated

Was this helpful?