mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 00:21:19 +00:00
Update confetti + next page when select
This commit is contained in:
parent
792d43e931
commit
0dd47e3076
@ -191,13 +191,12 @@ class _QuizzViewWidget extends State<QuizzViewWidget> {
|
||||
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.
|
||||
),
|
||||
@ -327,6 +326,8 @@ class _QuizzViewWidget extends State<QuizzViewWidget> {
|
||||
{
|
||||
showResult = true;
|
||||
_controllerCenter.play();
|
||||
} else {
|
||||
sliderController.nextPage(duration: new Duration(milliseconds: 650), curve: Curves.fastOutSlowIn);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user