mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -207,17 +207,18 @@ class MyApp extends StatelessWidget {
|
|||||||
fallbackLocale: const Locale("zh", "CN"),
|
fallbackLocale: const Locale("zh", "CN"),
|
||||||
getPages: Routes.getPages,
|
getPages: Routes.getPages,
|
||||||
home: const MainApp(),
|
home: const MainApp(),
|
||||||
builder: (BuildContext context, Widget? child) {
|
builder: FlutterSmartDialog.init(
|
||||||
return FlutterSmartDialog(
|
|
||||||
toastBuilder: (String msg) => CustomToast(msg: msg),
|
toastBuilder: (String msg) => CustomToast(msg: msg),
|
||||||
child: MediaQuery(
|
builder: (context, child) {
|
||||||
|
return MediaQuery(
|
||||||
data: MediaQuery.of(context)
|
data: MediaQuery.of(context)
|
||||||
.copyWith(textScaler: TextScaler.linear(textScale)),
|
.copyWith(textScaler: TextScaler.linear(textScale)),
|
||||||
child: child!,
|
child: child!,
|
||||||
),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
navigatorObservers: [
|
navigatorObservers: [
|
||||||
|
FlutterSmartDialog.observer,
|
||||||
VideoDetailPage.routeObserver,
|
VideoDetailPage.routeObserver,
|
||||||
VideoDetailPageV.routeObserver,
|
VideoDetailPageV.routeObserver,
|
||||||
MainApp.routeObserver,
|
MainApp.routeObserver,
|
||||||
|
|||||||
Reference in New Issue
Block a user