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.
This commit is contained in:
Ian VanSchooten 2025-02-25 11:42:58 -05:00 committed by GitHub
parent 330c8348fb
commit bcfcadec8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<TargetPlatform, PageTransitionsBuilder>.fromIterable(
TargetPlatform.values,
value: (_) => const FadeForwardsPageTransitionsBuilder(),
),
),
);
List<ExtendedColor> get extendedColors => [];