flutter_confetti icon indicating copy to clipboard operation
flutter_confetti copied to clipboard

Displaying it over a dialog

Open jimmyff opened this issue 4 years ago • 3 comments

This is lovely! Is there any way to get the confetti displaying over a dialog?

jimmyff avatar Oct 14 '19 15:10 jimmyff

Sorry for the late reply. I believe this should be possible. Take a look at Flutter overlays - https://api.flutter.dev/flutter/widgets/Overlay-class.html

If I have time in the future I might update the package to include overlays by default. But for now, it might be possible to create your own overlay.

funwithflutter avatar Oct 30 '19 06:10 funwithflutter

Stack(
      children: [
        Dialog(),
        Align(child: ConfettiWidget()),
      ],
)

britannio avatar Dec 03 '20 01:12 britannio

I was looking for something like this too. I wrote a function that would achieve this that is similar to showDialog. I call it showConfettiDialog.

https://gist.github.com/derekedelaney/0bd36b370daceaf56712a22bd097cdc8

drkdelaney avatar May 12 '21 22:05 drkdelaney