Spotify, monthly. A cloud storage plan, yearly. Adobe Creative Cloud, monthly. Something from a free trial you forgot to cancel.
Ask someone what that costs them a month and you'll get a guess.
SubZero is our Flutter subscription tracker template, and most of its screens exist to replace that guess with a number and a date. It runs on Riverpod 3 with riverpod_generator, stores everything on the device with Hive, and has no login, no backend and no bank connection. Here's how we approached the three things users actually come for.
The number
The dashboard shows one total monthly spend on a card at the top. Every subscription is either monthly or yearly, and yearly plans are converted to a monthly amount before they're added in.
// simplified
@riverpod
double monthlyTotal(Ref ref) {
final subs = ref.watch(subscriptionsProvider);
return subs.fold(0.0, (sum, s) => sum + switch (s.cycle) {
BillingCycle.monthly => s.price,
BillingCycle.yearly => s.price / 12,
});
}
Dividing by 12 isn't clever. The point is that a yearly plan stops hiding. A $120 a year tool and a $10 a month tool now look the same size, because they are.
The Analytics screen adds a donut chart built with fl_chart that splits the spend across 6 categories: Entertainment, Work, Utilities, Personal, Shopping and Other. There's also a one-tap PDF report with the monthly total, the number of active services and a table of every subscription.
The date
A total tells you what you spend. A reminder stops the surprise charge.
SubZero sends a local notification one day before each renewal, at 9:00 AM local time. Billing dates roll forward automatically after each cycle, starting from the first billing date the user enters.
// simplified
DateTime nextBillingDate(DateTime first, BillingCycle cycle, DateTime now) {
var date = first;
while (!date.isAfter(now)) {
date = cycle == BillingCycle.monthly
? DateTime(date.year, date.month + 1, date.day)
: DateTime(date.year + 1, date.month, date.day);
}
return date;
}
DateTime reminderAt(DateTime renewal) =>
DateTime(renewal.year, renewal.month, renewal.day - 1, 9);
That naive version has a trap, by the way. DateTime(2027, 2, 31) doesn't throw in Dart; it quietly becomes 3 March. Date maths like this is exactly why billing dates, reminders and restore are the three areas the project's unit tests cover.
Scheduling is short-range. The next 3 renewals are scheduled on Android, 1 on iOS. The app reschedules reminders on start, on resume and after a restore, and cancels them when a subscription is deleted, when all data is cleared, or when Billing Reminders is switched off. The Upcoming Bills screen shows the same dates as a countdown, colour-coded by urgency.
The typing
Nobody wants to fill in a form for Netflix. So SubZero ships 25 quick-add templates, from Netflix and Spotify to GitHub Copilot and Xbox Game Pass. Each one fills in the name, a default price, the category, a brand colour and a link to the provider's cancel page. Name autocomplete suggests templates while the user types.
// simplified, illustrative values
const quickAddTemplates = [
SubTemplate(
name: 'Netflix',
price: 9.99,
category: Category.entertainment,
color: Color(0xFFE50914),
cancelUrl: 'https://...',
),
// ...24 more
];
All templates live in one Dart file, so adding, removing or repricing them is a single edit. That cancel link also powers a Cancel Subscription button on the detail screen. For anything not on the list (a gym, a SaaS tool), users add a custom service with any name, price and colour.
Two things we were strict about
The PIN. The app lock is an optional 4-digit PIN on launch. It's stored as a salted SHA-256 hash using the crypto package, and changing it asks for the old PIN first.
Ads and consent. SubZero includes Google AdMob interstitials, shown when a user opens a subscription or adds a new one. They're capped at 2 per session, with the next ad preloaded. Google UMP consent runs before ads are initialised, and Settings gets an "Ad privacy options" entry where required. Debug builds use Google's test ad IDs.
What it doesn't do
- No accounts, cloud sync or bank connections. Data lives on one phone. Moving it means a JSON backup file and a restore, which is validated before any existing data is replaced.
- No exchange rates. The 5 currencies (USD, EUR, GBP, JPY, LKR) are display only.
- It has ads. You add your own AdMob App ID and ad unit IDs before release, and you're responsible for the AdMob side: costs, fees, taxes, your privacy policy and compliance in your regions.
- The web build is a demo. Notifications, backup and restore, PDF export and ads are mobile-only.
- iOS looks one renewal ahead, not three.
Try it
- Web preview: https://guide.stacklynlabs.com/subzero/preview/
- Android APK: https://drive.google.com/file/d/1j0HgNmNuBCvczDjBglCoEUW2ssVzUJjF/view?usp=sharing
- Product page: https://stacklynlabs.com/product/subzero/
SubZero is $29. It needs Flutter 3.44+ and targets Android (targetSdk 36) and iOS 13.0+.
When a subscription starts on the 31st, what should the next billing date be in a 30-day month: clamp to the last day, or roll into the next month?


Top comments (0)