Skip to content
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

Emitter Position #54

Open
sarpde opened this issue Oct 2, 2021 · 2 comments
Open

Emitter Position #54

sarpde opened this issue Oct 2, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@sarpde
Copy link

sarpde commented Oct 2, 2021

I wrap my elements with ConfettiWidget which is clean and convenient but I couldn't figure out a way to change emitter position. It is always on topLeft. What I'd like to do is emit particles from top or center of my element (stars in this example)
Screen Shot 2021-10-02 at 19 39 40

Is it possible?

@Junama
Copy link

Junama commented Oct 27, 2021

I have the same issue. I fix it with a padding and a blastDirection: pi /2

@funwithflutter funwithflutter added the enhancement New feature or request label Jan 2, 2022
@Petri-Oosthuizen
Copy link

The alignment widget works quite well to position the emitter position.

Align(
  alignment: Alignment.topCenter,
  child: ConfettiWidget(
    ...
  ),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants