Skip to content

Commit

Permalink
category model and list of categories
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Jun 3, 2019
1 parent 8c47590 commit c49d8ad
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lib/models/category.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import 'package:meta/meta.dart';

class Category{
final int id;
final String name;
final String icon;
Category(this.id, this.name, {this.icon});

}

final List<Category> categories = [
Category(9,"General Knowledge"),
Category(10,"Books"),
Category(11,"Film"),
Category(12,"Music"),
Category(13,"Musicals & Theatres"),
Category(14,"Television"),
Category(15,"Video Games"),
Category(16,"Board Games"),
Category(17,"Science & Nature"),
Category(18,"Computers"),
Category(19,"Mathematics"),
Category(20,"Mythology"),
Category(21,"Sports"),
Category(22,"Geography"),
Category(23,"History"),
Category(24,"Politics"),
Category(25,"Art"),
Category(26,"Celebrities"),
Category(27,"Animals"),
Category(28,"Vehicles"),
Category(29,"Comics"),
Category(30,"Gadgets"),
Category(31,"Japanese Anime & Manga"),
Category(32,"Cartoon & Animations"),
];

0 comments on commit c49d8ad

Please sign in to comment.