zeba_academy_animation_gallery 1.0.0
zeba_academy_animation_gallery: ^1.0.0 copied to clipboard
A complete animation gallery with transitions, hero animations, and controls for Zeba Academy.
๐ ZEBA ACADEMY ANIMATION GALLERY ๐ฆ Flutter Package Documentation (Production Ready) ๐ค About Author
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects.
๐ Website: https://sufyanism.com ๐ผ LinkedIn: https://www.linkedin.com/in/sufyanism
๐ฏ Project Overview
Zeba Academy Animation Gallery is a Flutter package designed to showcase and manage animations in a structured, reusable way.
It provides a complete system for:
๐ Animation examples gallery ๐ Page transitions โค๏ธ Hero animations ๐ฎ Play / Pause controls โก Speed adjustment ๐ Live preview mode ๐ Key Features ๐จ Animation System Custom animation builder support Frame-based animation preview Reusable animation items ๐ Gallery System Scrollable animation list Click-to-preview design Modular item structure ๐ฎ Controls Play / Pause animation Speed adjustment (0.5x โ 3.0x) Real-time updates ๐ Transitions Fade transitions Custom PageRouteBuilder support โค๏ธ Hero Animations Seamless shared element transitions Easy tag-based setup ๐ Preview Mode Live animation rendering Interactive control panel ๐ฆ Installation Step 1 โ Add dependency dependencies: zeba_academy_animation_gallery: ^1.0.0 Step 2 โ Install package flutter pub get ๐ง Basic Usage ๐ Create Animation Gallery import 'package:flutter/material.dart'; import 'package:zeba_academy_animation_gallery/zeba_academy_animation_gallery.dart';
void main() { runApp(const MyApp()); }
class MyApp extends StatelessWidget { const MyApp({super.key});
@override Widget build(BuildContext context) { return MaterialApp( home: AnimationGalleryPage( items: [ AnimationItem( title: "Fade Animation", description: "Simple opacity animation", builder: (context, value) { return Opacity( opacity: value, child: const FlutterLogo(size: 120), ); }, ), ], ), ); } } ๐ AnimationItem Structure ๐ Definition AnimationItem( title: "Slide Animation", description: "Moves widget horizontally", builder: (context, value) { return Transform.translate( offset: Offset(100 * (1 - value), 0), child: const FlutterLogo(size: 120), ); }, ); ๐ Preview Mode Features: โถ๏ธ Play / Pause toggle โก Speed control slider ๐ Loop animation ๐ฏ Real-time rendering โค๏ธ Hero Animation Example Hero( tag: "hero-box", child: Container( width: 120, height: 120, color: Colors.blue, ), ); ๐ Page Transition Example Navigator.push( context, PageRouteBuilder( pageBuilder: (_, __, __) => const NextPage(), transitionsBuilder: (, animation, __, child) { return FadeTransition( opacity: animation, child: child, ); }, ), ); โ๏ธ Controller System Features: ๐ฎ Play / Pause toggle โก Speed adjustment ๐ State notifier support ๐ Package Structure lib/ โฃ src/ โ โฃ models/ โ โฃ controllers/ โ โฃ pages/ โ โฃ widgets/ โฃ zeba_academy_animation_gallery.dart ๐งช Testing
Run tests using:
flutter test ๐ License ๐ข GNU GENERAL PUBLIC LICENSE (GPL-3.0)
This project is licensed under GPL-3.0.
You are free to:
โ Use โ Modify โ Distribute
But:
โ Any distributed version must remain open-source under GPL
๐ Full license: https://www.gnu.org/licenses/gpl-3.0.en.html
๐ Zeba Academy Ecosystem
๐ Learn and explore:
https://zeba.academy https://code.zeba.academy https://www.youtube.com/@zeba.academy https://www.instagram.com/zeba.academy/ ๐ Final Note
This package is designed to be:
Clean Reusable Developer-friendly Production-ready โญ Support
If you like this package:
โญ Star the repo ๐ Share with developers ๐ Use in your Flutter projects