Skip to main content

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

Daily water goal estimate and a simple hydration log with streaks.

example/example.dart

import 'package:gopromotional_siplog/gopromotional_siplog.dart';

void main() {
  print('Suggested goal: ${dailyGoal(weightKg: 70, activityMinutes: 30, hot: true)} ml');
  final log = HydrationLog(goal: 2000)
    ..add('500ml', date: '2026-10-19')
    ..add('33cl', date: '2026-10-19');
  final p = log.progress(date: '2026-10-19');
  print('${p.total} ml today, ${p.percent}% of ${p.goal} ml, ${p.remaining} ml to go');
  print(log.toJson());
}
0
likes
160
points
40
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Daily water goal estimate and a simple hydration log with streaks.

Homepage
Repository (GitHub)
View/report issues

Topics

#health #hydration #tracker #utility #json

License

MIT (license)

More

Packages that depend on gopromotional_siplog