-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alignment does not work #71
Comments
Hi! Can you share some example code, or explain better what you're trying to do? The main example demonstrates different alignments |
I'm also having the same issue; I've simply copied from the example but not sure what's missing. Confettis are shooting from a single point but can't move around the screen. @override
Widget build(BuildContext context) {
return Stack(
children: [
Align(
alignment: Alignment.center,
child: ConfettiWidget(
confettiController: _confettiController,
shouldLoop:
true, // start again as soon as the animation is finished
colors: const [
Colors.green,
Colors.blue,
Colors.pink,
Colors.orange,
Colors.purple
], // manually specify the colors to be used
),
), |
Also having the same problem. All confettis are stuck in place. edit: Center seems to be working better. Or if you want to align it to some edge, aligning it with column and/or row seems to be working. e2: Align seems to be working fine if you just set |
When I set the
|
I tried to wrap it around
Align
-Widgets - the children, the parent, everything.It never works consistently.
I also tried to put the
ConfettiWidget
in aStack
with a fixed size (Container wrapped around it) -> It does not align correctly.Sometimes the
ConfettiWidget
only emits from a singular point and every single confetti is displayed in its untransformed (and untranslated) form.Is there some tricky behaviour underlying?
The text was updated successfully, but these errors were encountered: