Skip to content

Commit

Permalink
feat:Android设备也设置为左右切换的页面动画
Browse files Browse the repository at this point in the history
  • Loading branch information
Tecode committed Jul 18, 2024
1 parent ee1b054 commit 683dbe1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/helpers/themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ThemeData _buildDarkTheme() {
final base = ThemeData(
pageTransitionsTheme: const PageTransitionsTheme(builders: {
TargetPlatform.iOS: NoShadowCupertinoPageTransitionsBuilder(),
TargetPlatform.android: NoShadowCupertinoPageTransitionsBuilder(),
}),
brightness: Brightness.dark,
primaryColor: primaryColor,
Expand Down Expand Up @@ -51,6 +52,7 @@ ThemeData _buildLightTheme() {
final base = ThemeData(
pageTransitionsTheme: const PageTransitionsTheme(builders: {
TargetPlatform.iOS: NoShadowCupertinoPageTransitionsBuilder(),
TargetPlatform.android: NoShadowCupertinoPageTransitionsBuilder(),
}),
brightness: Brightness.light,
primaryColor: primaryColor,
Expand Down

0 comments on commit 683dbe1

Please sign in to comment.