Quizzler - a simple Quiz app that presents a few yes/no questions and checks their answers

Overview

App Brewery Banner

Quizzler

Our Goal

In this tutorial we will be reviewing Stateful and Stateless Widgets as well as learning about the fundamental building blocks of Object Oriented Programming (OOP) - Classes and Objects.

What you will create

We’re going to make a quiz app that tests your general knowledge. As one of the most popular types of apps on the app stores, you can create your own quiz for other people to enjoy!

Finished App

What you will learn

  • Modularising your code into separate classes.
  • Dart classes and objects.
  • Using class constructors.
  • Extracting Widgets to refactor your code.
  • private and public modifiers in Dart.
  • How to use Dart lists.
  • The difference between var, const and final.

Code Snippet for Project

Question('Some cats are actually allergic to humans', true),
    Question('You can lead a cow down stairs but not up stairs.', false),
    Question('Approximately one quarter of human bones are in the feet.', true),
    Question('A slug\'s blood is green.', true),
    Question('Buzz Aldrin\'s mother\'s maiden name was \"Moon\".', true),
    Question('It is illegal to pee in the Ocean in Portugal.', true),
    Question(
        'No piece of square dry paper can be folded in half more than 7 times.',
        false),
    Question(
        'In London, UK, if you happen to die in the House of Parliament, you are technically entitled to a state funeral, because the building is considered too sacred a place.',
        true),
    Question(
        'The loudest sound produced by any animal is 188 decibels. That animal is the African Elephant.',
        false),
    Question(
        'The total surface area of two human lungs is approximately 70 square metres.',
        true),
    Question('Google was originally called \"Backrub\".', true),
    Question(
        'Chocolate affects a dog\'s heart and nervous system; a few ounces are enough to kill a small dog.',
        true),
    Question(
        'In West Virginia, USA, if you accidentally hit an animal with your car, you are free to take it home to eat.',
        true),

This is a companion project to The App Brewery's Complete Flutter Development Bootcamp, check out the full course at www.appbrewery.co

End Banner

You might also like...

A super simple quiz app built with flutter

A super simple quiz app built with flutter

WowSuchQuiz A very basic quiz app built using flutter for android. User authorization is managed using firebase. How to Use You will require flutter a

Feb 18, 2022

Quiz App with Simple Material UI

Quiz App with Simple Material UI

Quizzler ❓ Brief A Quiz app that tests your general knowledge. As one of the most popular types of apps on the app stores, you can create your own qui

Jan 13, 2022

A simple yet elegant quiz app developed with Flutter

A simple yet elegant quiz app developed with Flutter

CoolQuiz (Flutter - Dart) A simple yet elegant Quiz App developed with Flutter. Some of the Widgets and Plugins used TextFormField Buttons Snackbar Sh

Aug 11, 2022

Simple quiz app built with Appwrite + Flutter + Codemagic

Simple quiz app built with Appwrite + Flutter + Codemagic

Flutter Festival Kathmandu Quiz App A quiz app for the Flutter Festival Kathmandu built with Flutter Web on frontend and Appwrite on backend. Live Pre

Oct 22, 2022

Let's create a complete Flutter Quiz App UI from scratch with a beautiful design.

Let's create a complete Flutter Quiz App UI from scratch with a beautiful design.

Flutter Tutorial - Quiz App UI Let's create a complete Flutter Quiz App UI from scratch with a beautiful design. Social Media Preview Watch Video ⚡

Dec 29, 2022

Flutter quiz mobile app

game A new Flutter application. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

May 18, 2021

Flutter Quiz App

my_quiz A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Oct 18, 2021

A flutter quiz app that helps you learn about the City of Munich

A flutter quiz app that helps you learn about the City of Munich

MucQuiz MucQuiz is a quiz app that helps you learn about the City of Munich. It is a submission for the City of Munich challenge at hackaTUM 2021. Scr

Sep 6, 2022

Create & Play Quiz with Makemyquiz.web.app made with Flutter

Create & Play Quiz with Makemyquiz.web.app made with Flutter

Makemyquiz.web.app Create quiz, play them see detailed results and much more try now visit https://makemyquiz.web.app Features Included ✅ Google Sign

Oct 27, 2022
Owner
null
Quizzler - 6. Flutter app

quizzler Quiz app Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is your first

null 0 Jan 2, 2022
:atom: 🚀 NLW Quiz Dev - Flutter (a simple flutter quiz app built in Rocketseat Next Level Week)

Que tal acompanhar live codings de projetos reais ao vivo? Segue lá na twitch: Wilson Neto Dev na Twitch Next Level Week - Dev Quiz (NLW) Dev Quiz is

Wilson Neto B.R. 12 Jul 13, 2022
Quiz App to conduct online quiz developed with flutter framework and dart language

Online Quiz App A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Parag Patil 7 Nov 8, 2022
An application built using Flutter that is to conduct a quiz and provide the user with the result of the quiz.

Quizzler Challenge Solution This is a companion project to The App Brewery's Complete Flutter Development Bootcamp, check out the full course at www.a

dev_allauddin 4 Sep 8, 2022
The app checks what internet knows about you.

you You - what internet knows about you. The app has the functionality to check your data online. Check what internet giants knows about you. In this

Md Sadab Wasim 219 Jan 2, 2023
A flutter app where the user could add their credit cards and see a summary of their expenses

Card Controller ?? Card Controller foi um projeto realizado com o intuito de aprendizagem e prática da linguagem de programação Dart em conjunto com o

null 3 Jul 26, 2022
mezza 0 Nov 24, 2021
Flutter App using the stack overflow questions api which we made using django.

Flutter StackOverflow App Flutter StackOverflow App using the stack overflow questions api which we made using django. Show some ❤️ and star the repo

Pawan Kumar 206 Dec 30, 2022
Simple quiz app that i developed with flutter.

Quizler App I developed a simple quiz app, It contains a list of questions on locally. There are 2 options "true" and "false", after the user selects

null 1 Nov 26, 2021
This is a simple quiz app I created for specific use in my church.

flip_quiz_questions A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you star

null 0 Dec 27, 2021