From 13779b1464cfc9f6851e6c07763ca6a4577708f9 Mon Sep 17 00:00:00 2001 From: Kuba <101518357+jakubbaldyga@users.noreply.github.com> Date: Thu, 23 Jan 2025 17:56:33 +0100 Subject: [PATCH] corrected it, added const to describe it better --- lib/features/sks-menu/presentation/sks_menu_screen.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/features/sks-menu/presentation/sks_menu_screen.dart b/lib/features/sks-menu/presentation/sks_menu_screen.dart index 3e5fe163..a1907def 100644 --- a/lib/features/sks-menu/presentation/sks_menu_screen.dart +++ b/lib/features/sks-menu/presentation/sks_menu_screen.dart @@ -141,6 +141,8 @@ class _SKSMenuUnavailableAnimation extends HookWidget { ) * 0.6; + final animationTopOffset = -0.2; + return Scaffold( backgroundColor: context.colorTheme.whiteSoap, appBar: DetailViewAppBar( @@ -158,7 +160,7 @@ class _SKSMenuUnavailableAnimation extends HookWidget { child: SingleChildScrollView( child: Column( children: [ - Transform.translate(offset: Offset(0, -0.1 * animationSize), + Transform.translate(offset: Offset(0, animationTopOffset * animationSize), child: SizedBox.square( dimension: animationSize, child: Lottie.asset( @@ -185,7 +187,7 @@ class _SKSMenuUnavailableAnimation extends HookWidget { child: Transform.translate( offset: Offset( 0, - -(animationSize * 0.20), // the animation has some extra space at the bottom + animationSize * (-0.1 + animationTopOffset), // the animation has some extra space at the bottom ), child: Column( children: [