adjusted timer timeline colors

This commit is contained in:
Vadim 2024-05-03 13:42:54 +02:00
parent 6abb720b92
commit c98e384109
3 changed files with 6 additions and 12 deletions

View file

@ -16,11 +16,7 @@ class TimerTimeline extends StatelessWidget {
Widget build(BuildContext context) {
return CustomPaint(
painter: _TimelinePainter(
backgroundColor: ElevationOverlay.applySurfaceTint(
Theme.of(context).cardTheme.color!,
Theme.of(context).cardTheme.surfaceTintColor,
Theme.of(context).cardTheme.elevation!,
),
backgroundColor: Theme.of(context).colorScheme.surface,
progressColor: Theme.of(context).colorScheme.primary,
progress: progress,
),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 785 KiB

After

Width:  |  Height:  |  Size: 775 KiB

View file

@ -97,14 +97,12 @@ void main() {
if (scenarioWidgetKey.toString().contains('Dark')) {
await setTheme(tester, scenarioWidgetKey, ThemeType.dark);
}
if (!scenario.isStopped) {
await toggleTimer(tester, scenarioWidgetKey);
late final skipTimerDuration = Duration(
milliseconds: (scenario.shutterSpeedValue.value * 0.35 * Duration.millisecondsPerSecond).toInt(),
);
await tester.pump(skipTimerDuration);
if (scenario.isStopped) {
await toggleTimer(tester, scenarioWidgetKey);
} else {
await mockResumedState(tester, scenarioWidgetKey);
}
},