feat(train): a workout's sheet pulled up squares off, its bar naming the activity
As Strava's: over the last 6 % below the highest the sheet goes, its top corners square off from 28 to 0 and its handle folds away, so the bar above, opaque by then, meets it without the map showing through the corners. The bar names the activity rather than the workout, whose name already heads the sheet: it was in sight twice. sheetSquared in track_camera.dart, tested beside barShown. ADR 0030, D65. Whats-New: A workout's page pulled all the way up meets the bar square, which names the activity. Whats-New-De: Ganz hochgezogen schließt die Seite eines Trainings eckig an die Leiste an, die die Sportart nennt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
0c2d4ffecc
commit
615d66554b
1 changed files with 101 additions and 9 deletions
|
|
@ -80,5 +80,13 @@ void main() {
|
|||
expect(barShown(1), 1);
|
||||
expect(barShown((trackBarFrom + 1) / 2), closeTo(0.5, 1e-9));
|
||||
});
|
||||
|
||||
test('squares off over the last 6 % below the highest it goes (D65)', () {
|
||||
expect(sheetSquared(0.55, 0.9), 0);
|
||||
expect(sheetSquared(0.84, 0.9), 0);
|
||||
expect(sheetSquared(0.87, 0.9), closeTo(0.5, 1e-9));
|
||||
expect(sheetSquared(0.9, 0.9), 1);
|
||||
expect(sheetSquared(0.95, 0.9), 1);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue