zeba_academy_focus 1.0.0 copy "zeba_academy_focus: ^1.0.0" to clipboard
zeba_academy_focus: ^1.0.0 copied to clipboard

A lightweight Flutter productivity toolkit providing Pomodoro timer, focus mode, session tracking, zen themes, and productivity utilities for building distraction-free learning apps.

zeba_academy_focus šŸš€ #

A lightweight Flutter productivity toolkit that helps users stay focused using Pomodoro timers, session tracking, zen mode UI, and productivity utilities.

Built for developers who want to integrate focus + productivity features into learning, habit, or study apps.


✨ Features #

  • šŸ… Pomodoro Timer (work/break cycles)
  • šŸ“Š Session Tracker
  • 🧠 Focus Mode Controller
  • 🌿 Minimal / Zen UI support
  • šŸ“ˆ Productivity statistics
  • šŸ—‚ Session history support
  • šŸŽÆ Study / focus session management
  • šŸŽØ Zen theme system

šŸ“¦ Installation #

Add this to your pubspec.yaml:

dependencies:
  zeba_academy_focus: ^1.0.0

Then run:

flutter pub get

šŸš€ Quick Start #

import 'package:zeba_academy_focus/zeba_academy_focus.dart';

void main() {
  final timer = PomodoroTimer(
    workMinutes: 25,
    breakMinutes: 5,
  );

  final tracker = SessionTracker();

  final controller = FocusController(
    timer: timer,
    tracker: tracker,
  );

  controller.startFocus();
}

ā± Pomodoro Timer #

final timer = PomodoroTimer(
  workMinutes: 25,
  breakMinutes: 5,
);

timer.start();
timer.pause();
timer.reset();

šŸ“Š Session Tracker #

final tracker = SessionTracker();

tracker.addSession(
  FocusSession(
    startTime: DateTime.now(),
    endTime: DateTime.now(),
    durationMinutes: 25,
    isCompleted: true,
  ),
);

print(tracker.totalSessions);
print(tracker.totalFocusMinutes);

🧠 Focus Mode #

final controller = FocusModeController();

controller.enable();
controller.disable();
controller.toggle();

šŸŽØ Zen Theme #

MaterialApp(
  theme: ZenTheme.light(),
  darkTheme: ZenTheme.dark(),
);

šŸ“ Package Structure #

lib/
 ā”œā”€ā”€ src/
 │   ā”œā”€ā”€ timer/
 │   ā”œā”€ā”€ focus/
 │   ā”œā”€ā”€ themes/
 │   ā”œā”€ā”€ models/
 │   └── widgets/
 └── zeba_academy_focus.dart

šŸ’” Use Cases #

  • Study apps šŸ“š
  • Productivity apps ā³
  • Learning platforms šŸŽ“
  • Habit trackers šŸ“ˆ
  • Minimal distraction UI apps 🌿

šŸ‘Øā€šŸ’» 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


šŸš€ Zeba Academy #

Your all-in-one learning hub for coding, tech, and development.

šŸš€ Explore courses and resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated tutorials, 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.


ā¤ļø Support #

If you like this package:

  • ⭐ Star the repository
  • šŸ›  Contribute improvements
  • šŸ“¢ Share with developers

šŸ“œ License #

This project is open-source and available under the GPL License.

0
likes
130
points
69
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

A lightweight Flutter productivity toolkit providing Pomodoro timer, focus mode, session tracking, zen themes, and productivity utilities for building distraction-free learning apps.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on zeba_academy_focus