feat: small screen

This commit is contained in:
Simon Ding
2024-08-10 11:06:29 +08:00
parent 1391f55f44
commit b62e0e9bfd
3 changed files with 11 additions and 5 deletions

View File

@@ -58,3 +58,7 @@ bool isDesktop() {
return Platform.isLinux || Platform.isWindows || Platform.isMacOS;
}
bool isSmallScreen(BuildContext context) {
final screenWidth = MediaQuery.of(context).size.width;
return screenWidth < 600;
}