Skip to content

Commit

Permalink
test to enable predictive back gestures
Browse files Browse the repository at this point in the history
ref #445
  • Loading branch information
dreautall committed Oct 13, 2024
1 parent d21bd0c commit 580206b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
android:label="Waterfly III"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:enableOnBackInvokedCallback="false"
android:enableOnBackInvokedCallback="true"
android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
>
Expand Down
6 changes: 6 additions & 0 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ class _WaterflyAppState extends State<WaterflyApp> {
appBarTheme: const AppBarTheme(
shape: RoundedRectangleBorder(),
),
pageTransitionsTheme: const PageTransitionsTheme(
builders: <TargetPlatform, PageTransitionsBuilder>{
TargetPlatform.android:
PredictiveBackPageTransitionsBuilder(),
},
),
),
darkTheme: ThemeData(
brightness: Brightness.dark,
Expand Down

0 comments on commit 580206b

Please sign in to comment.