Skip to content

Commit 256f4d8

Browse files
committed
Updated android navigation transition
1 parent 6511893 commit 256f4d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/configs/Theme.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ final base = ThemeData(
2626
backgroundColor: Colors.white,
2727
splashColor: Colors.transparent,
2828
scaffoldBackgroundColor: Colors.white,
29+
pageTransitionsTheme: PageTransitionsTheme(
30+
builders: {
31+
TargetPlatform.android: OpenUpwardsPageTransitionsBuilder(),
32+
},
33+
),
2934
);
3035

3136
final baseDark = ThemeData(
@@ -36,4 +41,9 @@ final baseDark = ThemeData(
3641
backgroundColor: darkBackground,
3742
splashColor: Colors.transparent,
3843
scaffoldBackgroundColor: darkBackground,
44+
pageTransitionsTheme: PageTransitionsTheme(
45+
builders: {
46+
TargetPlatform.android: OpenUpwardsPageTransitionsBuilder(),
47+
},
48+
),
3949
);

0 commit comments

Comments
 (0)