You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.8 KiB
61 lines
1.8 KiB
class Category {
|
|
String id;
|
|
String name;
|
|
String image;
|
|
Category({this.id, this.name, this.image});
|
|
Category.fromJson(Map<String, dynamic> json)
|
|
: id = json['catid'],
|
|
name = json['catname'],
|
|
image = json['catimage'];
|
|
|
|
static List<Category> category = [
|
|
Category(
|
|
id: "TECAT001",
|
|
name: "ANTIGUES",
|
|
image: "assets/images/categories/antique2.png"),
|
|
Category(
|
|
id: "TECAT002",
|
|
name: "AGRICULTURE",
|
|
image: "assets/images/categories/agrix.png"),
|
|
Category(
|
|
id: "TECAT003",
|
|
name: "AUTO & TRANSPORTATION",
|
|
image: "assets/images/categories/autos.png"),
|
|
Category(
|
|
id: "TECAT004",
|
|
name: "BAGS, SHOES & ACCESSORIES",
|
|
image: "assets/images/categories/bags.png"),
|
|
Category(
|
|
id: "TECAT005",
|
|
name: "CLOTHING & ACCESSORIES",
|
|
image: "assets/images/categories/clothes.png"),
|
|
Category(
|
|
id: "TECAT006",
|
|
name: "ELECTRONICS",
|
|
image: "assets/images/categories/electronics.png"),
|
|
Category(
|
|
id: "TECAT007",
|
|
name: "GIFTS, SPORTS & TOYS",
|
|
image: "assets/images/categories/gifts.png"),
|
|
Category(
|
|
id: "TECAT008",
|
|
name: "FOOD",
|
|
image: "assets/images/categories/food.png"),
|
|
Category(
|
|
id: "TECAT009",
|
|
name: "HOME & GARDEN",
|
|
image: "assets/images/categories/home.png"),
|
|
Category(
|
|
id: "TECAT010",
|
|
name: "PET SUPPLIES",
|
|
image: "assets/images/categories/pets.png"),
|
|
Category(
|
|
id: "TECAT011",
|
|
name: "MACHINERY, INDUSTRIAL PARTS & TOOLS",
|
|
image: "assets/images/categories/machinery.png"),
|
|
Category(
|
|
id: "TECAT012",
|
|
name: "HEALTH & BEAUTY",
|
|
image: "assets/images/categories/health.png"),
|
|
];
|
|
}
|
|
|