π¦ zeba_academy_frame_scheduler
Advanced frame scheduling and rendering pipeline control for Flutter.
π Features
- π― Schedule widget rebuilds manually
- β±οΈ Control frame timing
- β‘ Reduce UI jank
- ποΈ Custom animation timing engine
- π Persistent frame callbacks
- π§ Priority-based task execution
π¦ Installation
Add this to your pubspec.yaml:
dependencies:
zeba_academy_frame_scheduler: ^0.0.1
π§ Usage
π Schedule a Rebuild
RebuildScheduler.scheduleRebuild(() {
setState(() {});
});
ποΈ Custom Animation
AnimationScheduler.scheduleAnimation(
duration: Duration(seconds: 2),
onTick: (progress) {
print(progress);
},
onComplete: () {
print("Done");
},
);
β οΈ Detect Jank
FrameTimingController.monitorFrames((timing) {
if (FrameTimingController.isJanky(timing)) {
print("β οΈ Jank detected");
}
});
ποΈ Architecture
FrameSchedulerController (Core Engine)
βββ FrameTask (Task Model)
βββ RebuildScheduler (UI Updates)
βββ AnimationScheduler (Custom Animations)
βββ FrameTimingController (Performance Monitoring)
π Folder Structure
lib/
βββ frame_scheduler.dart
βββ src/
βββ scheduler_controller.dart
βββ frame_task.dart
βββ rebuild_scheduler.dart
βββ animation_scheduler.dart
βββ frame_timing_controller.dart
β‘ Why Use This?
Flutterβs default rendering pipeline is powerful but abstracted. This package gives you:
- Fine-grained control over frames
- Better performance tuning
- Custom rendering strategies
- Reduced unnecessary rebuilds
π£οΈ Roadmap
Frame budget limiter (16ms control)Task batching systemIdle-time schedulingDevTools integrationVisual frame debugger
π€ Contributing
Contributions, issues, and feature requests are welcome!
π License
This project is licensed under the GNU General Public License v3.0.
π¨βπ» About Me
β¨ Iβm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin
π Your all-in-one no-bloat hub!
π Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! π»β¨
Zeba Academy is a learning platform dedicated to coding, technology, and development. β‘ Visit our main site: zeba.academy β‘ Explore hands-on courses and resources at: code.zeba.academy β‘ Check out our YouTube for more tutorials: zeba.academy β‘ Follow us on Instagram: zeba.academy
Thank you for visiting! π