Skip to content

Commit

Permalink
corrected it, added const to describe it better
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubbaldyga committed Jan 23, 2025
1 parent fdc5b7c commit 13779b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/features/sks-menu/presentation/sks_menu_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class _SKSMenuUnavailableAnimation extends HookWidget {
) *
0.6;

final animationTopOffset = -0.2;

return Scaffold(
backgroundColor: context.colorTheme.whiteSoap,
appBar: DetailViewAppBar(
Expand All @@ -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(
Expand All @@ -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: [
Expand Down

0 comments on commit 13779b1

Please sign in to comment.