测验游戏

本地数据测验游戏。


UI

  • 主页

home-page

info

  • 测验页面

quiz-page

  • 测验信息

quiz_info-page

  • 获胜页面

win-page

  • 失败页面

lose-page


要添加新问题,应该修改

Path: quiz_game/lib/quiz.dart

Code: void fetchData() {
questions = [
  {
    "question": "What is Undo shortcut in computer?",
    "options": ["ctl+y", "ctl+z", "ctl+s", "ctl+p"],
    "answer": 1
  },
  {
    "question": "What is Redo shortcut in computer?",
    "options": ["ctl+y", "ctl+z", "ctl+s", "ctl+p"],
    "answer": 0
  },
  {
    "question": "which is not a program language?",
    "options": ["python", "dart", "html", "typescript"],
    "answer": 2
  },
  {
    "question": "flutter's programming language?",
    "options": ["python", "dart", "swift", "java"],
    "answer": 1
  },
  {
    "question": "backend python framework?",
    "options": ["flask", "fast api", "django", "all"],
    "answer": 3
  }
];

GitHub

查看 Github