INNER CODE UNIT · Dart
usesDesktopLayout
rignaneseleo/SlimSocial-for-Facebook · SlimSocial_for_Facebook/lib/controllers/fb_controller.dart:77
static bool usesDesktopLayout() => getUserAgent() == kFirefoxUserAgent;
/// Whether external links should open in the system browser app.
///
/// Read on every link open, so the setting takes effect with no restart.
static bool usesSystemBrowser() =>
sp.getBool(SpKeys.useSystemBrowser) ?? false;
/// Text scaling for the webview, as a percentage of the page's own size.
///
/// Clamped on the way out as well as on the way in, so a value written by an
/// older build (or a corrupted preference) can never render the page
/// unreadable.
static int getTextZoom() =>
_clampTextZoom(sp.getInt(SpKeys.textZoom) ?? kDefaultTextZoom);
static Future<void> setTextZoom(int textZoom) =>
sp.setInt(SpKeys.textZoom, _clampTextZoom(textZoom));