mirror of
https://codeberg.org/mi6e4ka/openstore.git
synced 2025-06-28 20:19:58 +00:00
add predictive back gesture
This commit is contained in:
parent
0259f77fd2
commit
fcdf02ed9b
2 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,8 @@
|
|||
<application
|
||||
android:label="OpenStore"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:enableOnBackInvokedCallback="true">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
|
|
|
@ -41,6 +41,9 @@ class MyApp extends StatelessWidget {
|
|||
return MaterialApp.router(
|
||||
title: 'OpenStore',
|
||||
theme: ThemeData(
|
||||
pageTransitionsTheme: const PageTransitionsTheme(builders: {
|
||||
TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
|
||||
}),
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.blue,
|
||||
brightness: Brightness.dark,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue