mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: webdav
This commit is contained in:
@@ -37,7 +37,7 @@ import 'view/widget/appbar.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
_runInZone(() async {
|
||||
await initApp();
|
||||
await _initApp();
|
||||
runApp(
|
||||
MultiProvider(
|
||||
providers: [
|
||||
@@ -72,7 +72,7 @@ void _runInZone(void Function() body) {
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> initApp() async {
|
||||
Future<void> _initApp() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await _initDesktopWindow();
|
||||
|
||||
@@ -128,7 +128,7 @@ void _setupLogger() {
|
||||
|
||||
Future<void> _initDesktopWindow() async {
|
||||
if (!isDesktop) return;
|
||||
|
||||
|
||||
await windowManager.ensureInitialized();
|
||||
await CustomAppBar.updateTitlebarHeight();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user