Skip to content

feat: Tier 1 intro polish — flutter_animate#82

Draft
code418 wants to merge 3 commits intomasterfrom
feat/intro-polish-tier1
Draft

feat: Tier 1 intro polish — flutter_animate#82
code418 wants to merge 3 commits intomasterfrom
feat/intro-polish-tier1

Conversation

@code418
Copy link
Copy Markdown
Owner

@code418 code418 commented Apr 12, 2026

What

Adds flutter_animate as a dependency.

Note: confetti (^0.8.0) is already in pubspec.yaml from a previous addition.

Why

flutter_animate provides chainable, composable animation effects (fadeIn, slideX, shimmer, bounce, scale) on any widget with near-zero boilerplate. Intended for use on the intro screen:

// Postbox fades + scales in on step 0:
SvgPicture.asset('assets/postbox.svg', width: 120)
    .animate()
    .fadeIn(duration: 600.ms, curve: Curves.easeOut)
    .scale(begin: const Offset(0.6, 0.6), duration: 600.ms, curve: Curves.elasticOut)

// James slides in with bounce:
PostmanJamesSvg(size: 100)
    .animate()
    .slideX(begin: -1.5, end: 0, duration: 900.ms, curve: Curves.easeOutBack)

// "Mega points!" text shimmers:
Text('Mega points!')
    .animate(onPlay: (c) => c.repeat())
    .shimmer(duration: 1200.ms, color: postalGold)

confetti can be wired to the Mega Points step with gold + red colours.

Not wired up yet

Dependencies only. Follow-up PR wires the effects into lib/intro.dart.

Test plan

  • flutter pub get succeeds
  • flutter analyze clean
  • No runtime regressions on intro or home screen

code418 and others added 3 commits April 12, 2026 21:45
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Step 0: title slides up on entry; postbox scales in with elastic bounce
- Step 1: postbox fades in; 'Look, it's a Postie!' label fades in after 1s
- Steps 2 & 3: character row fades in; speech bubble slides up from below
- Step 4: confetti fires on entry; 'Points, baby!' text shimmers and pulses
- Steps 5: overview rows stagger in with 150ms delay each
- Step 6: thumbs-up bounces in; closing text fades in

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant