Skip to content

akankshacore/TriviaX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  TriviaX โ€“ Flutter Quiz App

TriviaX โœจ

A beautifully designed Flutter Quiz App powered by Riverpod and the Trivia API
Clean UI โ€ข Custom Quiz Builder โ€ข Dark Mode โ€ข Confetti Results

Flutter Riverpod API Status


๐Ÿ“ฑ App Preview


๐Ÿš€ Features

๐ŸŽฎ Quiz Modes

โ€ข API-based quiz (Easy / Medium / Hard) โ€ข Custom Admin-created quiz โ€ข 10 questions per quiz

๐Ÿ›  Admin Panel

โ€ข Create 4-option MCQ questions โ€ข Mark correct answers โ€ข Edit questions โ€ข Delete questions โ€ข Auto-limit to 10 questions โ€ข Completion dialog when quiz is ready

๐ŸŽฏ Gameplay

โ€ข โค๏ธ 3 Lives system โ€ข Skip question with score penalty โ€ข Back & Next navigation โ€ข Instant green/red answer feedback โ€ข Automatic score calculation

๐ŸŽจ UI Features

โ€ข Professional gradient theme โ€ข Dark & Light mode toggle โ€ข Smooth card animations โ€ข Clean Material 3 UI โ€ข Confetti celebration on results โ€ข Fully responsive layout


๐Ÿง  App Architecture

flowchart LR
A[User Opens App] --> B[Splash Screen]
B --> C[Welcome Screen]
C --> D{Select Mode}

D -->|API Quiz| E[Fetch Questions from Trivia API]
D -->|Custom Quiz| F[Load Admin Questions]

E --> G[Play Quiz Screen]
F --> G

G --> H[Answer Questions]
H --> I[Calculate Score]
I --> J[Result Screen]
J --> K[Confetti Celebration]
Loading

๐Ÿ“Š Quiz Gameplay Flow

flowchart TD
A[Start Quiz] --> B[Load Questions]
B --> C[Display Question]
C --> D{User Answer}

D -->|Correct| E[Increase Score]
D -->|Wrong| F[Lose Life]

E --> G[Next Question]
F --> G

G --> H{Questions Left?}

H -->|Yes| C
H -->|No| I[Show Result Screen]
Loading

โš™๏ธ State Management Flow

flowchart LR
A[UI Widgets] --> B[Riverpod Providers]
B --> C[Quiz State]
C --> D[Question Controller]
D --> E[API / Local Quiz Data]
E --> C
Loading

๐Ÿง  Tech Stack

Technology Purpose
Flutter UI Framework
Riverpod State Management
GetX Navigation + Theme
HTTP API Requests
Lottie Splash Animation
Confetti Result Celebration

๐ŸŒ Trivia API

Questions are fetched from:

https://the-trivia-api.com/api/questions?limit=10&difficulty=easy

Supported difficulty levels:

โ€ข easy โ€ข medium โ€ข hard


๐Ÿ— Project Structure

lib/
 โ”œโ”€โ”€ main.dart
 โ”œโ”€โ”€ splash_screen.dart
 โ”œโ”€โ”€ welcome_screen.dart
 โ”œโ”€โ”€ create_quiz_screen.dart
 โ”œโ”€โ”€ play_quiz_screen.dart
 โ”œโ”€โ”€ result_screen.dart

๐Ÿ”ฅ Why TriviaX Is Unique

โœ” Dual quiz system (API + Custom) โœ” Admin quiz builder โœ” Lives-based gameplay system โœ” Skip penalty feature โœ” Beautiful Flutter UI โœ” Dark mode support โœ” Confetti celebration โœ” Structured Flutter architecture

This is not a simple quiz app โ€” It is a well-structured Flutter project demonstrating real-world app architecture.


๐Ÿš€ How to Run

Clone the repository

git clone https://github.com/akankshacore/TriviaX.git

Navigate to project folder

cd TriviaX

Install dependencies

flutter pub get

Run the app

flutter run

๐Ÿ‘ฉโ€๐Ÿ’ป Developed By

Akanksha

About

TriviaX is a modern Flutter quiz app powered by Riverpod and Trivia API, featuring difficulty-based quizzes, a custom admin quiz builder, life-based gameplay, dark mode, and a premium Material 3 UI experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors