resolveFluentColorPickerStyle function

FluentColorPickerStyle resolveFluentColorPickerStyle(
  1. FluentColorPickerState state,
  2. FluentThemeData theme
)

Resolves the default style for state against theme.

The second of the three-function recomposition contract.

There is exactly one value, because upstream's whole useColorPickerStyles.styles.ts is display: flex, flex-direction: column and gap: spacingVerticalXS. A colour picker has no surface of its own — everything you can see belongs to a child.

Implementation

FluentColorPickerStyle resolveFluentColorPickerStyle(
  FluentColorPickerState state,
  FluentThemeData theme,
) => const FluentColorPickerStyle(
  spacing: WidgetStatePropertyAll<double?>(FluentSpacing.xs),
);