This is a Complete Quiz App in FLUTTER using a lot of features such as
Multiple Screens
Timer (30 sec By Default)
Button Color Changes On Click
Result Page
Questions From JSON
Random Questions Genration Added
And a lot more…
Updated Descriptions
Added JSON Files to Open for Diffrent Cards / Languages
Fixed The Code for Checking Answers…
// extra variable to iterate
int j = 1;
// to create the array elements randomly use the dart:math Module
// --- CODE ---
// ----- USE THIS IS CODE IF YOU WANT TO GENERATE ARRAY RANDOMLY -----
// import 'dart:math';
// var random_array;
// var distinctIds = [];
// var rand = new Random();
// for (int i = 0; ;) {
// distinctIds.add(rand.nextInt(10));
// random_array = distinctIds.toSet().toList();
// if(random_array.length < 10){
// continue;
// }else{
// break;
// }
// }
// print(random_array);
var random_array = [1, 6, 7, 2, 4, 10, 8, 3, 9, 5];
Timer(Duration(seconds: 1), nextquestion);
int timer = 30;
Coming Soon
Author: desi-programmer
GitHub: https://github.com/desi-programmer/flutter-quizstar
#flutter #dart #programming