getPaletteColors static method

FastPaletteColors getPaletteColors(
  1. BuildContext context
)

Implementation

static FastPaletteColors getPaletteColors(BuildContext context) {
  final themeBloc = BlocProvider.of<FastThemeBloc>(context);

  return themeBloc.currentState.brightness == Brightness.light
      ? kLightPaletteColors
      : kDarkPaletteColors;
}