Skip to content

Confetti animation doesn't work for iOS in release mode [help] #96

Open

Description

@Bojan227

It's just stuck at the top.
IMG_0023

ConfettiWidget(
          confettiController: _confettiController,
          blastDirection: pi / 2,
          colors: [context.theme.appColors.primary],
          blastDirectionality: BlastDirectionality.explosive,
        ),

Activity

  1. changed the title [-]Confetti animation doesn't work for iOS in release mode[/-] [+]Confetti animation doesn't work for iOS in release mode [help][/+] on Jul 23, 2024
  2. adnanefouam commented on Oct 21, 2024

    @adnanefouam

    same problem

  3. mahbubmunna commented on Dec 16, 2024

    @mahbubmunna

    any solution yet?

  4. dhonig-weizmann commented on Feb 16, 2025

    @dhonig-weizmann

    Same for us

  5. sheinix commented on Feb 17, 2025

    @sheinix

    any solution for this? experiencing this on iOS 18.3 iPhone 15 Pro Max.

  6. Barzi-Yassin commented on Mar 2, 2025

    @Barzi-Yassin

    iOS sometimes doesn’t recognize the animation properly when started immediately.
    Adding a delay before playing works for me:

      @override
      void initState() {
        super.initState();
        controllerConfetti =
            ConfettiController(duration: const Duration(seconds: 1));
    
        WidgetsBinding.instance.addPostFrameCallback((_) {
          Future.delayed(const Duration(milliseconds: 500), () {
            if (mounted) controllerConfetti.play();
          });
        });
      }
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions