🎮 PlayUIKit

A vibrant, juicy, and engaging Flutter widget collection designed for modern mobile apps, gamified experiences, and casual games.

Zero external dependencies — powered 100% by Flutter's built-in animation framework, canvas rendering, and physics.


🚀 Features & Widgets

1. 🔘 Buttons with "Waouh" Animations

  • PlayBouncyButton: Spring physics bounce scaling on tap, customizable gradients, haptic feedback, and glowing shadows.
  • PlayArcade3DButton: Tactile 3D push-down button (Duolingo / Arcade style) that depresses physically when pressed.
  • PlayShimmerGlowButton: Holographic shimmer ray sweeping across the surface + pulsating neon aura.
  • PlayHoldProgressButton: Continuous hold-to-confirm button with filling progress ring/bar (ideal for payments, purchases, and risky game actions).

2. 💳 Payment & Success Feedback

  • PlayPaymentSuccessView: Full transaction confirmation view with amount badge, cascading receipt details, and celebration effects.
  • PlayAnimatedCheckmark: Smooth custom-drawn checkmark with expanding circular burst.
  • PlayConfettiBurst: Physics-based confetti particle explosion (squares, circles, ribbons).

3. 🕹️ Gaming Status & HUD

  • PlayHeartLifeBar: Retro heart containers with shake damage animation on hit, and pulsating critical life alert.
  • PlayXpProgressBar: Leveling progress bar with gradient fill, glowing spark, and customizable levels.
  • PlayRollingCounter: Smooth rolling odometer number counter for coins, scores, and balance updates.

4. 🪟 Aesthetics & Badges

  • PlayGlassCard: Frosted glassmorphism card with real-time backdrop blur and luminous border.
  • PlayNeonBadge: Pulsing animated pill badge for LIVE, VIP, PRO, discounts, or rank indicators.
  • PlayAnimatedAvatar: Avatar surrounded by an animated rotating gradient halo ring with status indicator.

5. 🏆 Celebrations & Modals

  • PlayRewardModal: Victory / level up modal with rotating sunburst rays, bouncing trophy, and claim action (PlayRewardModal.show(...)).
  • PlayAchievementToast: Glossy slide-down notification banner for unlocked badges and trophies (PlayAchievementToast.show(...)).

📦 Installation

Add play_ui_kit to your pubspec.yaml:

dependencies:
  play_ui_kit: ^0.1.0

Import it in your Dart code:

import 'package:play_ui_kit/play_ui_kit.dart';

💡 Quick Examples

Bouncy & 3D Arcade Buttons

PlayBouncyButton(
  gradient: PlayColors.sunset,
  onPressed: () => print('Tapped!'),
  child: const Text('Jouer maintenant', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
);

PlayArcade3DButton(
  frontColor: const Color(0xFF2563EB),
  depth: 6.0,
  onPressed: () => print('Arcade press!'),
  child: const Text('START GAME', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
);

Complete Payment Confirmation

PlayPaymentSuccessView(
  amount: '25 000',
  currency: 'FCFA',
  title: 'Paiement Réussi !',
  subtitle: 'Votre transaction a été validée avec succès.',
  details: const [
    PlayPaymentDetailRow(label: 'Référence', value: 'TX-9482710'),
    PlayPaymentDetailRow(label: 'Moyen', value: 'Mobile Money'),
    PlayPaymentDetailRow(label: 'Statut', value: 'Validé ✅', isHighlighted: true),
  ],
  onPrimaryPressed: () => Navigator.of(context).pop(),
);

Glassmorphism & Neon Badges

PlayGlassCard(
  child: Column(
    children: [
      PlayNeonBadge.live(),
      const SizedBox(height: 8),
      const Text('Tournoi en cours', style: TextStyle(color: Colors.white)),
    ],
  ),
);

📱 Running the Interactive Showcase App

To test all widgets live on your device or emulator:

cd example
flutter run

Libraries

play_ui_kit
PlayUIKit - A suite of vibrant, juicy, and engaging Flutter widgets designed for modern mobile apps, gaming HUDs, and delightful user interactions.