SuggestionStyle class
Styling options for the code completion suggestion popup.
This class extends OverlayStyle to provide specific styling for the autocomplete suggestion list that appears while typing in the editor.
Example:
SuggestionStyle(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
backgroundColor: Colors.grey[900]!,
focusColor: Colors.blue.withOpacity(0.3),
hoverColor: Colors.blue.withOpacity(0.1),
splashColor: Colors.blue.withOpacity(0.2),
textStyle: TextStyle(color: Colors.white),
)
- Inheritance
-
- Object
- OverlayStyle
- SuggestionStyle
Constructors
- SuggestionStyle({double elevation = 6, required ShapeBorder shape, required Color backgroundColor, required Color focusColor, required Color hoverColor, required Color splashColor, required TextStyle textStyle})
- Creates a SuggestionStyle with the specified options.
Properties
- backgroundColor → Color
-
The background color of the overlay.
finalinherited
- elevation → double
-
The elevation of the overlay, which determines the shadow depth.
Defaults to 6.
finalinherited
- focusColor → Color
-
The color used when the overlay is focused.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverColor → Color
-
The color used when the overlay is hovered.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder
-
The shape of the overlay, which defines its border and corner radius.
This can be a ShapeBorder such as RoundedRectangleBorder, CircleBorder, etc.
finalinherited
- splashColor → Color
-
The color used for the splash effect when the overlay is tapped.
finalinherited
- textStyle → TextStyle
-
The text style used for the text in the overlay.
This is typically a TextStyle that defines the font size, weight, color, etc.
finalinherited
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