new: fullscreen mode

This commit is contained in:
lollipopkit
2024-04-10 21:23:00 +08:00
parent 11956aee00
commit 5836275a3f
15 changed files with 198 additions and 58 deletions

View File

@@ -75,7 +75,13 @@ class MyApp extends StatelessWidget {
themeMode: themeMode,
theme: light,
darkTheme: tMode < 3 ? dark : _getAmoledTheme(dark),
home: const HomePage(),
home: Stores.setting.fullScreen.fetch()
? OrientationBuilder(
builder: (_, ori) {
return HomePage(landscape: ori == Orientation.landscape);
},
)
: const HomePage(),
);
}
}