From bcfcadec8ef46f2ed628ab9334088e1f142f22a6 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 25 Feb 2025 11:42:58 -0500 Subject: [PATCH] Use material 3 page transitions [android] (#267) The latest version of flutter (3.29, which we're already using) finally added a decent page transition matching up with the native material 3 transition. (main-api.flutter.dev/flutter/material/FadeForwardsPageTransitionsBuilder-class.html) To test, fire up the app in android, and navigate around. --- lib/services/theme.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/services/theme.dart b/lib/services/theme.dart index c241bcf4..ec4a4915 100644 --- a/lib/services/theme.dart +++ b/lib/services/theme.dart @@ -345,6 +345,12 @@ class MaterialTheme { textTheme: textTheme.apply(bodyColor: colorScheme.onSurface, displayColor: colorScheme.onSurface), scaffoldBackgroundColor: colorScheme.surface, canvasColor: colorScheme.surface, + pageTransitionsTheme: PageTransitionsTheme( + builders: Map.fromIterable( + TargetPlatform.values, + value: (_) => const FadeForwardsPageTransitionsBuilder(), + ), + ), ); List get extendedColors => [];