flutter_ios_dark_mode

Flutter plugin for getting iOS 13 Dark Mode current enabled state

Usage

Add package as depndency to pubspec.yaml

import 'package:flutter_ios_dark_mode/flutter_ios_dark_mode.dart';

// Get current state
final bool darkModeEnabled = await FlutterIosDarkMode().darkModeEnabled;

// or subscribe to changes
FlutterIosDarkMode().onDarkModeStateChanged.listen((bool darkModeEnabled) {
  /* ... */
})

Libraries

flutter_ios_dark_mode

Dart

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.