Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
offlineprogrammer committed Nov 22, 2022
1 parent 11a668c commit 428d60f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# flutter_quiz_app
# Flutter Quiz App Riverpod 2.0 & Freezed

A new Flutter project.
[![HitCount](https://hits.dwyl.com/offlineprogrammer/flutter_quiz_app.svg?style=flat-square&show=unique)](http://hits.dwyl.com/offlineprogrammer/flutter_quiz_app)
![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCZr0c9Ooo_6oDoLpOS7rD-g?style=social)
![Twitter Follow](https://img.shields.io/twitter/follow/_Mo_Malaka_?style=social)

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.


<a href="https://youtu.be/8yp4Nm6pgOU" target="_blank"><img src="preview.gif"></a>
6 changes: 1 addition & 5 deletions lib/common/data/quiz_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ class QuizRepository {
final QuizService quizService;

Future<List<QuizQuestion>?> getQuestions() async {
return await quizService.getQuestions(
numQuestions: 5,
categoryId: 9,
difficulty: Difficulty.any,
);
return await quizService.getQuestions();
}

Future<List<QuizCategory>?> getCategories() async {
Expand Down
6 changes: 1 addition & 5 deletions lib/common/services/quiz_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ class QuizService {

final SettingsState settingsState;

Future<List<QuizQuestion>?> getQuestions({
required int numQuestions,
required int categoryId,
required Difficulty difficulty,
}) async {
Future<List<QuizQuestion>?> getQuestions() async {
try {
final queryParameters = {
'type': 'multiple',
Expand Down
Binary file added preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 428d60f

Please sign in to comment.