flutter_adaptive_text 1.0.0
flutter_adaptive_text: ^1.0.0 copied to clipboard
Automatically picks a legible text color (black, white, or any palette color) based on the background color. WCAG 2.1 AA/AAA + APCA support. Drop-in AdaptiveText widget, Color extension, and standalon [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_adaptive_textThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
flutter_adaptive_text: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_adaptive_text/flutter_adaptive_text.dart';