forked from lohanidamodar/flutter_opentrivia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
category model and list of categories
- Loading branch information
1 parent
8c47590
commit c49d8ad
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"), | ||
]; |