HeaderThemeData class
A style that overrides the default appearance of ChoiceChip and ChoiceChip widgets when used with HeaderTheme or with the overall FilterListTheme's FilterListThemeData.choiceChipTheme.
See also:
- HeaderTheme, the theme which is configured with this class.
- FilterListThemeData.choiceChipTheme, which can be used to override the default style for ChoiceChip
- Mixed in types
Constructors
-
HeaderThemeData({TextStyle? headerTextStyle = const TextStyle(fontSize: 18, color: Colors.black54, fontWeight: FontWeight.bold), TextStyle? searchFieldTextStyle, Color? searchFieldBackgroundColor = const Color(0xfff5f5f5), Color closeIconColor = Colors.black54, Color? searchFieldIconColor = Colors.black54, Color? backgroundColor, InputBorder? searchFieldInputBorder = InputBorder.none, List<
BoxShadow> ? boxShadow, double searchFieldBorderRadius = 100, String? searchFieldHintText = 'Search here...', TextStyle? searchFieldHintTextStyle}) -
Builds a HeaderThemeData.
const
- HeaderThemeData.dark()
-
factory
- HeaderThemeData.light()
-
factory
Properties
- backgroundColor → Color?
-
Background color of the header.
final
-
boxShadow
→ List<
BoxShadow> ? -
Create box shadow for the header.
final
- closeIconColor → Color
-
The color for the close icon.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- headerTextStyle → TextStyle?
-
TextStyle for the header text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchFieldBackgroundColor → Color?
-
Background color of the search field.
final
- searchFieldBorderRadius → double
-
Border radius of the search field.
Defaults to 100. The value is always non-negative.
final
- searchFieldHintText → String?
-
Search field hint text
final
- searchFieldHintTextStyle → TextStyle?
-
The TextStyle for search field hint text
final
- searchFieldIconColor → Color?
-
The search icon color for the search field.
final
- searchFieldInputBorder → InputBorder?
-
Defines the appearance of an search field input border.
final
- searchFieldTextStyle → TextStyle?
-
TextStyle for the search field text.
final
Methods
-
copyWith(
{TextStyle? selectedChipTextStyle, TextStyle? unselectedChipTextStyle, TextStyle? searchFieldTextStyle, TextStyle? headerTextStyle, Color? unselectedTextBackgroundColor, VisualDensity? visualDensity, double? searchFieldBorderRadius, String? searchFieldHintText, TextStyle? searchFieldHintTextStyle, Color? shadowColor, Color? selectedShadowColor, List< BoxShadow> ? boxShadow, EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? margin, Color? backgroundColor, Color? searchFieldBackgroundColor, Color? closeIconColor, Color? searchFieldIconColor}) → HeaderThemeData - Creates a copy of this theme, but with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
lerp(
HeaderThemeData a, HeaderThemeData b, double t) → HeaderThemeData - Linearly interpolates between two HeaderThemeData.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override