๐ฅ Zeba Academy Streak
A Flutter package for creating learning streak systems with daily progress tracking, calendar heatmaps, rewards, and motivation widgets.
Build engaging education experiences by helping users maintain consistent daily learning habits.
๐ Package Information
Package Name
zeba_academy_streak
Version
1.0.0
License
GPL-3.0
โจ Features
๐ฅ Daily Streak Tracking
Track user learning consistency.
Features:
- Daily activity completion
- Automatic streak calculation
- Current streak counter
- Learning progress tracking
๐ Calendar Heatmap
Visualize learning activity like GitHub contribution graphs.
Features:
- Completed days display
- Missed days tracking
- Activity visualization
- Customizable UI
๐ Reward System
Motivate users with achievement milestones.
Built-in rewards:
| Days | Reward |
|---|---|
| 7 Days | Starter |
| 30 Days | Master |
| 100 Days | Legend |
๐ก Motivation Widgets
Ready-to-use widgets:
- Motivation cards
- Streak counter
- Progress displays
๐ Installation
Add dependency:
dependencies:
zeba_academy_streak: ^1.0.0
Run:
flutter pub get
๐ฆ Import
import 'package:zeba_academy_streak/zeba_academy_streak.dart';
๐ฅ Usage
Create Controller
final streak =
StreakController(
history: [],
);
streak.markToday();
๐ Display Streak Counter
StreakCounter(
controller: streak,
)
Example:
Learning Streak
๐ฅ 5 Days
๐ Heatmap Widget
StreakHeatmap(
days: streak.history,
)
Shows:
- Learning activity
- Completed days
- Progress history
๐ฌ Motivation Card
MotivationCard(
message:
"Keep learning every day ๐",
)
๐ Rewards
Check unlocked reward:
final reward =
streak.reward();
if(reward != null){
print(
reward.title
);
}
๐ Folder Structure
zeba_academy_streak
lib/
โโโ models/
โ โโโ streak_day.dart
โ โโโ streak_reward.dart
โโโ controllers/
โ โโโ streak_controller.dart
โโโ widgets/
โ โโโ streak_counter.dart
โ โโโ streak_heatmap.dart
โ โโโ motivation_card.dart
โโโ zeba_academy_streak.dart
๐ฏ Use Cases
Perfect for:
- Learning apps
- Coding practice platforms
- Course applications
- Quiz apps
- Student dashboards
- Habit trackers
- Education platforms
๐ Requirements
Flutter:
>=3.10.0
Dart:
>=3.12.0
๐งช Testing
Run tests:
flutter test
Analyze package:
flutter analyze
๐ค Contributing
Contributions are welcome.
Steps:
git checkout -b feature/new-feature
Make changes.
Commit:
git commit -m "Add new feature"
Push:
git push origin feature/new-feature
Create Pull Request.
๐จโ๐ป About Me
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects.
Learn more:
๐ Website
๐ผ LinkedIn
https://www.linkedin.com/in/sufyanism
๐ Zeba Academy
Your all-in-one learning hub!
Zeba Academy is a learning platform focused on coding, technology, and development.
Explore:
๐ Main Website
๐ป Coding Resources
โถ YouTube
https://www.youtube.com/@zeba.academy
๐ธ Instagram
https://www.instagram.com/zeba.academy/
๐ License
This project is licensed under:
GNU GENERAL PUBLIC LICENSE
Version 3 (GPL-3.0)
You are free to:
โ Use โ Modify โ Study โ Share โ Distribute
Under the terms of GPL-3.0.
Full license:
https://www.gnu.org/licenses/gpl-3.0.html
โญ Support
If this package helps your project:
โญ Star the repository
๐ค Contribute
๐ข Share with developers
Thank you for supporting open-source โค๏ธ