Skip to content

to-on-kikaku/Flutter_contrast_checker

Repository files navigation

Contrast Checker

A flutter package for checking the text color and the background color contrast.

Installation

Add contrast_checker as a dependency in your pubspec.yaml file.

contrast_checker: any

Android

No permissions required. Uses application cache directory.

iOS

No permissions required.

How-to:

bool isContrast = contrastCheck(18.6, Color(0xFF6E6E6E), Color(0xFFFFFFFF), WCAG.AA);

About

You can check the contrast between the background color and the text color based on WCAG 2.0.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published