From 0346821cf5b13b8b6e831e2ae92915b819592117 Mon Sep 17 00:00:00 2001 From: Noo6 <2746419228@qq.com> Date: Sun, 18 Aug 2024 13:27:16 +0800 Subject: [PATCH] opt: windows and linux drag area --- lib/app.dart | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/lib/app.dart b/lib/app.dart index 27c3f4bf..e07aa7cf 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -86,19 +86,21 @@ class MyApp extends StatelessWidget { themeMode: themeMode, theme: light.fixWindowsFont, darkTheme: (tMode < 3 ? dark : dark.toAmoled).fixWindowsFont, - home: Builder( - builder: (context) { - context.setLibL10n(); - final appL10n = AppLocalizations.of(context); - if (appL10n != null) l10n = appL10n; + home: VirtualWindowFrame( + child: Builder( + builder: (context) { + context.setLibL10n(); + final appL10n = AppLocalizations.of(context); + if (appL10n != null) l10n = appL10n; - final intros = _IntroPage.builders; - if (intros.isNotEmpty) { - return _IntroPage(intros); - } + final intros = _IntroPage.builders; + if (intros.isNotEmpty) { + return _IntroPage(intros); + } - return const HomePage(); - }, + return const HomePage(); + }, + ), ), ); }