Revert "Add support for predictive back"

This reverts commit e1ed7f8ae7.
This commit is contained in:
2025-07-28 21:50:34 +02:00
parent 4a7b28ad68
commit 37ea8448cb
4 changed files with 1 additions and 16 deletions

View File

@@ -1,7 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="@string/app_name"
android:enableOnBackInvokedCallback="true"
/>
<!-- The INTERNET permission is required for development. Specifically,

View File

@@ -2,8 +2,7 @@
<application
android:label="@string/app_name"
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon"
android:enableOnBackInvokedCallback="true">
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:exported="true"
@@ -12,7 +11,6 @@
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:enableOnBackInvokedCallback="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user

View File

@@ -62,12 +62,6 @@ class DarkTheme extends AppTheme {
return ThemeData(
brightness: Brightness.dark,
primarySwatch: createMaterialColor(AppTheme.mugitenWheat.background),
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
// Use PredictiveBackPageTransitionsBuilder to get the predictive back route transition!
TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
},
),
);
}
}

View File

@@ -62,12 +62,6 @@ class LightTheme extends AppTheme {
brightness: Brightness.light,
primarySwatch: createMaterialColor(AppTheme.mugitenWheat.background),
// primarySwatch: Colors.green,
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
// Use PredictiveBackPageTransitionsBuilder to get the predictive back route transition!
TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
},
),
);
}
}