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! š»āØ
š Links
- š Main site: https://zeba.academy
- š» Coding platform: https://code.zeba.academy
- šŗ YouTube: https://www.youtube.com/@zeba.academy
- šø Instagram: https://www.instagram.com/zeba.academy/
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.