flutter_adaptive_text 1.0.0 copy "flutter_adaptive_text: ^1.0.0" to clipboard
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_text

This 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.0

Alternatively, 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';
6
likes
150
points
--
downloads

Documentation

API reference

Publisher

verified publisheruzairaslam.com

Weekly Downloads

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 standalone utility functions.

Repository (GitHub)
View/report issues

Topics

#text #color #accessibility #wcag #contrast

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_adaptive_text