INNER CODE UNIT · Dart

usesSystemBrowser

rignaneseleo/SlimSocial-for-Facebook · SlimSocial_for_Facebook/lib/controllers/fb_controller.dart:82

  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));

  /// How many feed items the filter has hidden, across every session.
  static int getAdsBlockedTotal() => sp.getInt(SpKeys.adsBlockedTotal) ?? 0;

  /// Adds [count] to the running total and returns the new value.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…