searchViewThemeData static method

SearchViewThemeData searchViewThemeData(
  1. Palette colors,
  2. TextTheme textTheme, [
  3. MonetShapes? shapes
])

Implementation

static SearchViewThemeData searchViewThemeData(
  Palette colors,
  TextTheme textTheme, [
  MonetShapes? shapes,
]) {
  shapes ??= _defaultShapes;
  return SearchViewThemeData(
    backgroundColor: colors.background,
    elevation: modalElevation,
    surfaceTintColor: colors.background,
    constraints: const BoxConstraints(
      minWidth: 360.0,
      maxWidth: 800.0,
      minHeight: 56.0,
    ),
    side: BorderSide(color: colors.fill, width: 2),
    shape: shapes.border(side: BorderSide(color: colors.fill, width: 2)),
    headerTextStyle: textTheme.headlineMedium,
    headerHintStyle: textTheme.headlineSmall,
    dividerColor: colors.backgroundText,
  );
}