mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 13:08:42 +00:00
enable predicvie back
This commit is contained in:
parent
6ae05fbc59
commit
214ec6b368
3 changed files with 44 additions and 38 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
android:icon="@mipmap/ic_launcher">
|
android:icon="@mipmap/ic_launcher">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
|
android:enableOnBackInvokedCallback="true"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
android:taskAffinity=""
|
android:taskAffinity=""
|
||||||
|
|
@ -33,10 +34,10 @@
|
||||||
android:value="2" />
|
android:value="2" />
|
||||||
|
|
||||||
|
|
||||||
<service
|
<!-- <service
|
||||||
android:name="com.pravera.flutter_foreground_task.service.ForegroundService"
|
android:name="com.pravera.flutter_foreground_task.service.ForegroundService"
|
||||||
android:foregroundServiceType="dataSync|remoteMessaging"
|
android:foregroundServiceType="dataSync|remoteMessaging"
|
||||||
android:exported="false" />
|
android:exported="false" /> -->
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="eu.twonly.service.TWONLY_LOGO"
|
android:name="eu.twonly.service.TWONLY_LOGO"
|
||||||
|
|
|
||||||
16
lib/app.dart
16
lib/app.dart
|
|
@ -119,10 +119,18 @@ class _AppState extends State<App> with WidgetsBindingObserver {
|
||||||
],
|
],
|
||||||
onGenerateTitle: (BuildContext context) => "twonly",
|
onGenerateTitle: (BuildContext context) => "twonly",
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
colorScheme:
|
colorScheme: ColorScheme.fromSeed(
|
||||||
ColorScheme.fromSeed(seedColor: const Color(0xFF57CC99)),
|
seedColor: const Color(0xFF57CC99),
|
||||||
inputDecorationTheme:
|
),
|
||||||
const InputDecorationTheme(border: OutlineInputBorder())),
|
pageTransitionsTheme: const PageTransitionsTheme(
|
||||||
|
builders: {
|
||||||
|
TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
inputDecorationTheme: const InputDecorationTheme(
|
||||||
|
border: OutlineInputBorder(),
|
||||||
|
),
|
||||||
|
),
|
||||||
darkTheme: ThemeData.dark().copyWith(
|
darkTheme: ThemeData.dark().copyWith(
|
||||||
colorScheme: ColorScheme.fromSeed(
|
colorScheme: ColorScheme.fromSeed(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,7 @@ class PermissionHandlerViewState extends State<PermissionHandlerView> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return PopScope(
|
return Scaffold(
|
||||||
onPopInvokedWithResult: (bool didPop, Object? result) async {},
|
|
||||||
child: Scaffold(
|
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.all(100),
|
padding: EdgeInsets.all(100),
|
||||||
|
|
@ -87,7 +85,6 @@ class PermissionHandlerViewState extends State<PermissionHandlerView> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue