Skip to content

Commit

Permalink
Updated android navigation transition
Browse files Browse the repository at this point in the history
  • Loading branch information
hmziqrs committed Dec 26, 2020
1 parent 6511893 commit 256f4d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/configs/Theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ final base = ThemeData(
backgroundColor: Colors.white,
splashColor: Colors.transparent,
scaffoldBackgroundColor: Colors.white,
pageTransitionsTheme: PageTransitionsTheme(
builders: {
TargetPlatform.android: OpenUpwardsPageTransitionsBuilder(),
},
),
);

final baseDark = ThemeData(
Expand All @@ -36,4 +41,9 @@ final baseDark = ThemeData(
backgroundColor: darkBackground,
splashColor: Colors.transparent,
scaffoldBackgroundColor: darkBackground,
pageTransitionsTheme: PageTransitionsTheme(
builders: {
TargetPlatform.android: OpenUpwardsPageTransitionsBuilder(),
},
),
);

0 comments on commit 256f4d8

Please sign in to comment.