opt: windows and linux drag area

This commit is contained in:
Noo6
2024-08-18 13:27:16 +08:00
parent 966a60a82d
commit 0346821cf5

View File

@@ -86,19 +86,21 @@ class MyApp extends StatelessWidget {
themeMode: themeMode, themeMode: themeMode,
theme: light.fixWindowsFont, theme: light.fixWindowsFont,
darkTheme: (tMode < 3 ? dark : dark.toAmoled).fixWindowsFont, darkTheme: (tMode < 3 ? dark : dark.toAmoled).fixWindowsFont,
home: Builder( home: VirtualWindowFrame(
builder: (context) { child: Builder(
context.setLibL10n(); builder: (context) {
final appL10n = AppLocalizations.of(context); context.setLibL10n();
if (appL10n != null) l10n = appL10n; final appL10n = AppLocalizations.of(context);
if (appL10n != null) l10n = appL10n;
final intros = _IntroPage.builders; final intros = _IntroPage.builders;
if (intros.isNotEmpty) { if (intros.isNotEmpty) {
return _IntroPage(intros); return _IntroPage(intros);
} }
return const HomePage(); return const HomePage();
}, },
),
), ),
); );
} }