mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-03-03 15:25:27 +00:00
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:
parent
330c8348fb
commit
bcfcadec8e
1 changed files with 6 additions and 0 deletions
|
@ -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 => [];
|
||||
|
|
Loading…
Reference in a new issue