flutter_contrast_checker library

Classes

ContrastCheckerOverlay
Adds a draggable floating trigger and contrast analysis overlay.
ContrastCheckerTheme
ContrastResult
Aggregated WCAG contrast results for a color pair.

Functions

colorToHex(Color color) String
Formats a color as uppercase RGB hex (e.g., #12AB34).
wcagContrastRatio(Color a, Color b) double
Computes WCAG 2.x contrast ratio for two colors.
wcagContrastResult(Color a, Color b) ContrastResult
Computes WCAG AA/AAA pass/fail results for normal and large text.