Style class
A class that defines the styling options for FlutterSearchify.
Constructors
- Style({InputDecoration searchInputDecoration = const InputDecoration(hintText: 'Search...'), BoxDecoration searchBoxDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10)), boxShadow: [BoxShadow(color: Colors.black12, blurRadius: 5, offset: Offset(0, 2))]), BoxDecoration listBoxDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10)), boxShadow: [BoxShadow(color: Colors.black26, blurRadius: 8, offset: Offset(0, 4))]), BoxDecoration itemDecoration = const BoxDecoration(), EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 15, vertical: 8), EdgeInsets itemMargin = EdgeInsets.zero, EdgeInsets searchInputPadding = const EdgeInsets.symmetric(horizontal: 15, vertical: 8), EdgeInsets searchInputMargin = EdgeInsets.zero})
-
Creates a Style object for customizing the visual appearance of the search field and its results.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemDecoration → BoxDecoration
-
Decoration for individual result items.
final
- itemMargin → EdgeInsets
-
Margin for each item in the result list.
final
- itemPadding → EdgeInsets
-
Padding for each item in the result list.
final
- listBoxDecoration → BoxDecoration
-
Decoration for the list of result items.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchBoxDecoration → BoxDecoration
-
Decoration for the outer search box container.
final
- searchInputDecoration → InputDecoration
-
Decoration for the search input field container.
final
- searchInputMargin → EdgeInsets
-
Margin around the search input field.
final
- searchInputPadding → EdgeInsets
-
Padding around the search input field.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited