A flutter package for checking the text color and the background color contrast.
Add contrast_checker as a dependency in your pubspec.yaml file.
contrast_checker: any
No permissions required. Uses application cache directory.
No permissions required.
bool isContrast = contrastCheck(18.6, Color(0xFF6E6E6E), Color(0xFFFFFFFF), WCAG.AA);