searchBarThemeData static method
SearchBarThemeData
searchBarThemeData(
- Palette colors,
- TextTheme textTheme, [
- MonetShapes? shapes
Implementation
static SearchBarThemeData searchBarThemeData(
Palette colors,
TextTheme textTheme, [
MonetShapes? shapes,
]) {
shapes ??= _defaultShapes;
return SearchBarThemeData(
elevation: const WidgetStatePropertyAll(2),
backgroundColor: WidgetStatePropertyAll(colors.background),
shadowColor: WidgetStatePropertyAll(colors.background),
surfaceTintColor: WidgetStatePropertyAll(colors.background),
overlayColor: WidgetStatePropertyAll(colors.background),
side: WidgetStatePropertyAll(BorderSide(color: colors.fill, width: 2)),
shape: WidgetStatePropertyAll(
shapes.border(side: BorderSide(color: colors.fill, width: 2)),
),
padding: const WidgetStatePropertyAll(
EdgeInsets.symmetric(horizontal: 16),
),
textStyle: WidgetStatePropertyAll(textTheme.bodyMedium),
hintStyle: WidgetStatePropertyAll(textTheme.labelLarge),
constraints: const BoxConstraints(
minWidth: 360.0,
maxWidth: 800.0,
minHeight: 56.0,
), // match default
);
}