Skip to content

Commit

Permalink
Update sks_menu_screen.dart
Browse files Browse the repository at this point in the history
applied code fixes to pass gh actions
  • Loading branch information
jakubbaldyga committed Jan 23, 2025
1 parent 436a88a commit d2be66e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/features/sks-menu/presentation/sks_menu_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class _SKSMenuUnavailableAnimation extends HookWidget {
) *
0.6;

final animationTopOffset = -0.2;
const animationTopOffset = -0.2;

return HorizontalSymmetricSafeAreaScaffold(
backgroundColor: context.colorTheme.whiteSoap,
Expand All @@ -161,7 +161,8 @@ class _SKSMenuUnavailableAnimation extends HookWidget {
child: SingleChildScrollView(
child: Column(
children: [
Transform.translate(offset: Offset(0, animationTopOffset * animationSize),
Transform.translate(
offset: Offset(0, animationTopOffset * animationSize),
child: SizedBox.square(
dimension: animationSize,
child: Lottie.asset(
Expand All @@ -188,7 +189,9 @@ class _SKSMenuUnavailableAnimation extends HookWidget {
child: Transform.translate(
offset: Offset(
0,
animationSize * (-0.1 + animationTopOffset), // 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 d2be66e

Please sign in to comment.