onSurface property

Color get onSurface

Text colour that is readable on surface.

Implementation

Color get onSurface =>
    ThemeData.estimateBrightnessForColor(surface) == Brightness.dark
    ? Colors.white
    : const Color(0xFF1F2333);