๐Ÿ”ฅ 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

https://sufyanism.com/

๐Ÿ’ผ 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

https://zeba.academy

๐Ÿ’ป Coding Resources

https://code.zeba.academy

โ–ถ 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 โค๏ธ