fix(app): restore standard Android back navigation
This commit is contained in:
@@ -30,12 +30,11 @@ ThemeData appLightTheme() => ThemeData(
|
||||
pageTransitionsTheme: appPageTransitions,
|
||||
);
|
||||
|
||||
/// Pages slide in and out quickly. Android's default fades the whole page,
|
||||
/// which is costly for long pages (a chat) and made Back feel slow; iOS keeps
|
||||
/// its native transition and swipe-back.
|
||||
/// Android and iOS keep their native transitions and interactive back gestures.
|
||||
/// Desktop hosts use the short horizontal slide.
|
||||
const appPageTransitions = PageTransitionsTheme(
|
||||
builders: {
|
||||
TargetPlatform.android: FastSlidePageTransitionsBuilder(),
|
||||
TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
|
||||
TargetPlatform.fuchsia: FastSlidePageTransitionsBuilder(),
|
||||
TargetPlatform.linux: FastSlidePageTransitionsBuilder(),
|
||||
TargetPlatform.windows: FastSlidePageTransitionsBuilder(),
|
||||
|
||||
Reference in New Issue
Block a user