Skip to main content

gopromotional_mugday 1.0.1 copy "gopromotional_mugday: ^1.0.1" to clipboard
gopromotional_mugday: ^1.0.1 copied to clipboard

Caffeine tracker with half-life estimate, sleep-ready time and reusable-cup stats.

example/example.dart

import 'package:gopromotional_mugday/gopromotional_mugday.dart';

void main() {
  final log = CaffeineLog()
    ..add('flat-white', time: '2026-10-19T08:00', reusable: true)
    ..add('filter-coffee', time: '2026-10-19T14:00');
  final d = log.day(date: '2026-10-19');
  print('${d.total} mg today (limit ${d.limit} mg)');
  print('About ${log.inSystem(at: '2026-10-19T22:00')} mg still in your system at 22:00');
  print('Below 50 mg from about ${log.sleepReady(50)}');
}
0
likes
160
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Caffeine tracker with half-life estimate, sleep-ready time and reusable-cup stats.

Homepage
Repository (GitHub)
View/report issues

Topics

#health #caffeine #tracker #coffee #utility

License

MIT (license)

More

Packages that depend on gopromotional_mugday