mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
adjusted timer timeline colors
This commit is contained in:
parent
6abb720b92
commit
c98e384109
3 changed files with 6 additions and 12 deletions
|
@ -16,11 +16,7 @@ class TimerTimeline extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return CustomPaint(
|
return CustomPaint(
|
||||||
painter: _TimelinePainter(
|
painter: _TimelinePainter(
|
||||||
backgroundColor: ElevationOverlay.applySurfaceTint(
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
Theme.of(context).cardTheme.color!,
|
|
||||||
Theme.of(context).cardTheme.surfaceTintColor,
|
|
||||||
Theme.of(context).cardTheme.elevation!,
|
|
||||||
),
|
|
||||||
progressColor: Theme.of(context).colorScheme.primary,
|
progressColor: Theme.of(context).colorScheme.primary,
|
||||||
progress: progress,
|
progress: progress,
|
||||||
),
|
),
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 785 KiB After Width: | Height: | Size: 775 KiB |
|
@ -97,14 +97,12 @@ void main() {
|
||||||
if (scenarioWidgetKey.toString().contains('Dark')) {
|
if (scenarioWidgetKey.toString().contains('Dark')) {
|
||||||
await setTheme(tester, scenarioWidgetKey, ThemeType.dark);
|
await setTheme(tester, scenarioWidgetKey, ThemeType.dark);
|
||||||
}
|
}
|
||||||
await toggleTimer(tester, scenarioWidgetKey);
|
if (!scenario.isStopped) {
|
||||||
late final skipTimerDuration = Duration(
|
|
||||||
milliseconds: (scenario.shutterSpeedValue.value * 0.35 * Duration.millisecondsPerSecond).toInt(),
|
|
||||||
);
|
|
||||||
await tester.pump(skipTimerDuration);
|
|
||||||
if (scenario.isStopped) {
|
|
||||||
await toggleTimer(tester, scenarioWidgetKey);
|
await toggleTimer(tester, scenarioWidgetKey);
|
||||||
} else {
|
late final skipTimerDuration = Duration(
|
||||||
|
milliseconds: (scenario.shutterSpeedValue.value * 0.35 * Duration.millisecondsPerSecond).toInt(),
|
||||||
|
);
|
||||||
|
await tester.pump(skipTimerDuration);
|
||||||
await mockResumedState(tester, scenarioWidgetKey);
|
await mockResumedState(tester, scenarioWidgetKey);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue