Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] onboarding hero shrinking

Priyanshu Dangare0ddd1efce6ef
diff --git a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
index a154ab2967..bfe9a44451 100644
--- a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
@@ -163,9 +163,10 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
}
Widget _buildOnboardingAnimation() {
- return SizedBox(
- height: 280,
- width: double.infinity,
+ return ConstrainedBox(
+ constraints: BoxConstraints(
+ maxHeight: MediaQuery.of(context).size.height * 0.35,
+ ),
child: rive.RiveWidgetBuilder(
fileLoader: _onboardingAnimationLoader,
builder: (BuildContext context, rive.RiveState state) {