decoration static method

BoxDecoration decoration(
  1. BuildContext context
)

Implementation

static BoxDecoration decoration(BuildContext context) {
  final SmoothColorsThemeExtension theme = Theme.of(
    context,
  ).extension<SmoothColorsThemeExtension>()!;
  final bool lightTheme = context.lightTheme();

  return BoxDecoration(
    borderRadius: SearchFieldUIHelper.SEARCH_BAR_BORDER_RADIUS,
    color: Colors.white,
    border: Border.all(
      color: lightTheme ? theme.primaryBlack : theme.primarySemiDark,
    ),
  );
}