ui/courier_background library
Classes
- CourierBackground
- Paints color behind child when it's set, and adjusts the theme below it so the default text, icons, dividers and sheets stay readable on that color.
Extensions
Functions
-
courierThemeForBackground(
ThemeData base, Color background) → ThemeData -
basewithbackgroundas the surface color. Whenbackgroundis dark in a light theme, or light in a dark theme, the default foreground colors switch to white or black. -
mergeCourierTextStyle(
TextStyle? base, TextStyle? style) → TextStyle? -
styleon top ofbase, so a style that leaves fields out keeps the default's values for them instead of falling back to the surrounding text style.