feat(app): a Pomodoro timer on Home, in the notification and in the top bar

Home has a Pomodoro timer (decided 2026-10-07, after Goodtime): the
profile it runs, chosen there while no timer is set, the time left of
the phase, and Start, Pause or Resume, Skip and Stop. While studying, a
small countdown sits in the study screen's header, and a tap pauses it
or goes on. A phase that ends leads to the next, which starts by itself
where the profile says so and otherwise waits, paused at its full
length.

Profiles follow the person to every device, in their settings (schema
4, still written as schema 3 while the profiles are as they come, so
older apps go on reading the settings): Classic, 25 minutes of focus,
5 of break and 15 after four, and 52/17 without long breaks, built in;
both can be changed, more added and deleted, from Home's card or from
Settings. A profile can start breaks and focus by themselves, and keep
the device quiet while focusing. The running timer is the device's own,
kept in the person's folder: closed and opened again, the app catches
up with the phases that ran out meanwhile.

Android: the app's own foreground service (Kotlin, specialUse, as
Goodtime does) shows an ongoing notification counting the phase down,
with Pause or Resume, Skip and Stop; on Android 16 it is a Live Update,
its progress bar the profile's cycle, each phase a segment, focus in
cobalt and breaks in copper. An exact alarm (USE_EXACT_ALARM) alerts
with sound and vibration when the phase ends, also with the app
closed, and Do Not Disturb goes on while focusing once the person
allowed it, the filter before given back afterwards. No notification
plugin: flutter_local_notifications has Live Updates only in a
prerelease that needs compileSdk 37; androidx.core 1.18, which the
build resolved already, has every API needed.

Linux, over the session bus (package:dbus, already in the build): where
the desktop shows icons in its top bar (GNOME with the AppIndicator
extension, which Ubuntu has built in; KDE) the timer counts down there,
the buttons in the icon's menu, as a StatusNotifierItem written in Dart
on the names and paths the snap's desktop plug allows; elsewhere a
notification with the buttons says until when the phase runs. An alert
with sound ends each phase while the app runs, and GNOME's banners stay
off while focusing, through gsettings. xdg-desktop-portal's Background
status, the planned fallback, serves Flatpaks only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-07 02:54:52 +02:00
commit 918e10bb2b
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -2839,6 +2839,154 @@ class AppLocalizationsEn extends AppLocalizations {
);
return '$_temp0';
}
@override
String get pomodoroTitle => 'Pomodoro';
@override
String get pomodoroFocus => 'Focus';
@override
String get pomodoroShortBreak => 'Short break';
@override
String get pomodoroLongBreak => 'Long break';
@override
String pomodoroFocusOf(int done, int total) {
return 'Focus $done of $total';
}
@override
String get pomodoroStart => 'Start';
@override
String get pomodoroPause => 'Pause';
@override
String get pomodoroResume => 'Resume';
@override
String get pomodoroSkip => 'Skip';
@override
String get pomodoroStop => 'Stop';
@override
String get pomodoroPaused => 'Paused';
@override
String pomodoroPausedProfile(String profile) {
return 'Paused · $profile';
}
@override
String get pomodoroClassic => 'Classic';
@override
String get pomodoroUnnamed => 'Unnamed profile';
@override
String get pomodoroProfiles => 'Pomodoro profiles';
@override
String get pomodoroChooseProfile => 'Choose a profile';
@override
String get pomodoroAddProfile => 'Add a profile';
@override
String get pomodoroEditProfile => 'Edit profile';
@override
String get pomodoroName => 'Name';
@override
String get pomodoroFocusLength => 'Focus';
@override
String get pomodoroShortBreakLength => 'Short break';
@override
String get pomodoroLongBreakLength => 'Long break';
@override
String pomodoroMinutes(int count) {
return '$count min';
}
@override
String get pomodoroNoLongBreak => 'None';
@override
String get pomodoroLongBreakAfter => 'Focus phases before a long break';
@override
String get pomodoroAutoStartBreaks => 'Start breaks by themselves';
@override
String get pomodoroAutoStartFocus => 'Start focus by itself after a break';
@override
String get pomodoroDoNotDisturb => 'Do Not Disturb while focusing';
@override
String get pomodoroDoNotDisturbHint =>
'The device keeps quiet while you focus; the alert at its end still sounds.';
@override
String get pomodoroDoNotDisturbDenied =>
'The app may not keep this device quiet. Allow it in the system\'s settings.';
@override
String get pomodoroDeleteProfile => 'Delete profile';
@override
String pomodoroSummary(int focus, int shortBreak) {
return '$focus min focus, $shortBreak min break';
}
@override
String pomodoroSummaryLong(
int focus,
int shortBreak,
int longBreak,
int after,
) {
return '$focus min focus, $shortBreak min break, $longBreak min after $after';
}
@override
String get pomodoroAlertFocusDone => 'Time for a break';
@override
String get pomodoroAlertBreakDone => 'Back to focus';
@override
String pomodoroAlertStarts(String phase) {
return '$phase has started.';
}
@override
String pomodoroAlertWaits(String phase) {
return '$phase is ready when you are.';
}
@override
String get homeWidgetPomodoro => 'Pomodoro timer';
@override
String get pomodoroAlerts => 'Pomodoro alerts';
@override
String pomodoroUntil(String time) {
return 'Until $time';
}
@override
String pomodoroLeft(String left) {
return '$left left';
}
}
/// The translations for English, as used in the United Kingdom (`en_GB`).