diff --git a/lib/ui/views/home/home_view.dart b/lib/ui/views/home/home_view.dart index f12849b0..fbfb9c95 100644 --- a/lib/ui/views/home/home_view.dart +++ b/lib/ui/views/home/home_view.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_i18n/flutter_i18n.dart'; import 'package:google_fonts/google_fonts.dart'; +import 'package:animations/animations.dart'; import 'package:revanced_manager/app/app.locator.dart'; import 'package:revanced_manager/ui/views/home/home_viewmodel.dart'; import 'package:revanced_manager/ui/widgets/homeView/available_updates_card.dart'; @@ -83,9 +84,26 @@ class HomeView extends StatelessWidget { ], ), const SizedBox(height: 14), - model.showUpdatableApps - ? AvailableUpdatesCard() - : InstalledAppsCard(), + PageTransitionSwitcher( + transitionBuilder: + (child, primaryAnimation, secondaryAnimation) { + return FadeThroughTransition( + animation: primaryAnimation, + secondaryAnimation: secondaryAnimation, + fillColor: Colors.transparent, + child: child, + ); + }, + layoutBuilder: (entries) { + return Stack( + alignment: Alignment.topCenter, + children: entries, + ); + }, + child: model.showUpdatableApps + ? AvailableUpdatesCard() + : InstalledAppsCard(), + ), ], ), ),