mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-03 08:39:46 +08:00
hide systembar when preview
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -46,6 +46,8 @@ import 'package:window_manager/window_manager.dart' hide calcWindowPosition;
|
||||
|
||||
WebViewEnvironment? webViewEnvironment;
|
||||
|
||||
EdgeInsets? tmpPadding;
|
||||
|
||||
Future<void> _initDownPath() async {
|
||||
if (PlatformUtils.isDesktop) {
|
||||
final customDownPath = Pref.downloadPath;
|
||||
@@ -313,16 +315,20 @@ class MyApp extends StatelessWidget {
|
||||
data: mediaQuery.copyWith(
|
||||
textScaler: textScaler,
|
||||
size: mediaQuery.size / uiScale,
|
||||
padding: mediaQuery.padding / uiScale,
|
||||
padding: (tmpPadding ?? mediaQuery.padding) / uiScale,
|
||||
viewInsets: mediaQuery.viewInsets / uiScale,
|
||||
viewPadding: mediaQuery.viewPadding / uiScale,
|
||||
viewPadding: (tmpPadding ?? mediaQuery.viewPadding) / uiScale,
|
||||
devicePixelRatio: mediaQuery.devicePixelRatio * uiScale,
|
||||
),
|
||||
child: child!,
|
||||
);
|
||||
} else {
|
||||
child = MediaQuery(
|
||||
data: mediaQuery.copyWith(textScaler: textScaler),
|
||||
data: mediaQuery.copyWith(
|
||||
textScaler: textScaler,
|
||||
padding: tmpPadding,
|
||||
viewPadding: tmpPadding,
|
||||
),
|
||||
child: child!,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user