mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-12 08:30:54 +01:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWZ9CKZsNxtD5Jr9bYD
16 lines
482 B
Dart
16 lines
482 B
Dart
/// The two lines of the ongoing run notification (numbers only, textgate).
|
|
library;
|
|
|
|
import 'package:workout_app/services/run_format.dart';
|
|
|
|
/// Distance as the title; moving time and average pace as the body.
|
|
({String title, String body}) runNotificationCopy({
|
|
required double metres,
|
|
required int movingSeconds,
|
|
}) => (
|
|
title: formatDistanceKm(metres),
|
|
body:
|
|
'${formatDuration(movingSeconds)} '
|
|
'${formatPace(seconds: movingSeconds, distanceM: metres)}',
|
|
);
|