diff --git a/lib/Screens/Quizz/quizz_view.dart b/lib/Screens/Quizz/quizz_view.dart index 175eb17..a819b5e 100644 --- a/lib/Screens/Quizz/quizz_view.dart +++ b/lib/Screens/Quizz/quizz_view.dart @@ -191,13 +191,12 @@ class _QuizzViewWidget extends State { confettiController: _controllerCenter, blastDirectionality: BlastDirectionality .explosive, // don't specify a direction, blast randomly - shouldLoop: - true, // start again as soon as the animation is finished + shouldLoop: true, // start again as soon as the animation is finished colors: const [ Colors.red, - Colors.pink, - Colors.orange, - Colors.purple + //Colors.pink, + //Colors.orange, + //Colors.purple ], // manually specify the colors to be used createParticlePath: drawStar, // define a custom shape/path. ), @@ -324,10 +323,12 @@ class _QuizzViewWidget extends State { setState(() { i.chosen = index; if(currentIndex == _questionsSubDTO.length && i.chosen == index) - { - showResult = true; - _controllerCenter.play(); - } + { + showResult = true; + _controllerCenter.play(); + } else { + sliderController.nextPage(duration: new Duration(milliseconds: 650), curve: Curves.fastOutSlowIn); + } }); }, child: Padding(