1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can force to use mobile mode

This commit is contained in:
2020-05-13 18:21:30 +02:00
parent d04b40f662
commit a6ce969e89
2 changed files with 23 additions and 5 deletions

View File

@ -202,6 +202,7 @@ bool darkTheme() => preferences().getBool(PreferencesKeyList.ENABLE_DARK_THEME);
/// Check out whether we use tablet mode or not
bool isTablet(BuildContext context) =>
!preferences().getBool(PreferencesKeyList.FORCE_MOBILE_MODE) &&
MediaQuery.of(context).size.width >= 1024;
/// Show about Comunic dialog