adaptive_foreground 0.0.1
adaptive_foreground: ^0.0.1 copied to clipboard
Adaptive foreground color (black/white) for Flutter. Automatically adjusts status-bar style and widget foreground based on background luminance, with optional live backdrop sampling via RepaintBoundary.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add adaptive_foregroundWith Flutter:
$ flutter pub add adaptive_foregroundThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
adaptive_foreground: ^0.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:adaptive_foreground/adaptive_foreground.dart';