neutralFill function

Color neutralFill(
  1. BuildContext context
)

A neutral fill (secondary button, neutral badge, neutral prompt): the high tone, or the card's where the surface under it is already high — a grouped light page draws neutral fills on portal.card.

Implementation

Color neutralFill(BuildContext context) {
  final cs = Theme.of(context).colorScheme;
  return Material.maybeOf(context)?.color == cs.surfaceContainerHigh
      ? PortalUiTheme.of(context).card
      : cs.surfaceContainerHigh;
}