From f2efbb19841eeab2631e9b5fe9a69185a08a9aa1 Mon Sep 17 00:00:00 2001 From: alestiago Date: Sun, 1 May 2022 21:00:30 +0100 Subject: [PATCH] refactor: adjusted RenderPriority --- .../lib/src/components/render_priority.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pinball_components/lib/src/components/render_priority.dart b/packages/pinball_components/lib/src/components/render_priority.dart index 384249d2..382118b3 100644 --- a/packages/pinball_components/lib/src/components/render_priority.dart +++ b/packages/pinball_components/lib/src/components/render_priority.dart @@ -26,7 +26,7 @@ abstract class RenderPriority { static const ballOnSpaceshipRail = _above + spaceshipRail; /// Render priority for the [Ball] while it's on the [LaunchRamp]. - static const ballOnLaunchRamp = launchRamp; + static const ballOnLaunchRamp = _above + launchRamp; // Background @@ -52,7 +52,7 @@ abstract class RenderPriority { static const launchRamp = _above + outerBoundary; - static const launchRampForegroundRailing = ballOnBoard; + static const launchRampForegroundRailing = _above + ballOnLaunchRamp; static const plunger = _above + launchRamp;