Flutter plugin for getting iOS 13 Dark Mode current enabled state
Add package as dependency to pubspec.yaml
# pubspec.yaml
dependencies:
flutter_ios_dark_mode: ^0.0.1
Then you can get current state immediately or subscribe to changes
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) {
/* ... */
})