CalloutStyle class final
Style overrides that can be applied when showing a callout.
Width values apply to the content area. The painted bubble adds contentPadding and borderWidth around the measured content.
- Annotations
Constructors
- CalloutStyle({TextStyle? titleTextStyle, TextStyle? detailTextStyle, Color backgroundColor = Colors.white, Color borderColor = const Color(0x1F000000), double borderRadius = 8, double borderWidth = 1, EdgeInsets contentPadding = const EdgeInsets.all(4), double minWidth = 52, double? maxWidth, Offset offset = const Offset(0, -8), bool autoAdjustWidth = true})
Properties
- autoAdjustWidth → bool
-
Whether content width should automatically adjust within minWidth and
maxWidth.
final
- backgroundColor → Color
-
Background color of the callout.
final
- borderColor → Color
-
Border color of the callout.
final
- borderRadius → double
-
Corner radius of the callout, in logical pixels.
final
- borderWidth → double
-
Border width of the callout, in logical pixels.
final
- contentPadding → EdgeInsets
-
Inner padding around title/detail content.
final
- detailTextStyle → TextStyle?
-
Text style used for the callout detail text.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxWidth → double
-
Maximum width allowed for callout content layout, in logical pixels.
final
- minWidth → double
-
Minimum width allowed for callout content layout, in logical pixels.
final
- offset → Offset
-
Offset applied to the anchor point before layout, in logical pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleTextStyle → TextStyle?
-
Text style used for the callout title.
final
Methods
-
copyWith(
{Object? titleTextStyle = _unset, Object? detailTextStyle = _unset, Color? backgroundColor, Color? borderColor, double? borderRadius, double? borderWidth, EdgeInsets? contentPadding, double? minWidth, double? maxWidth, Offset? offset, bool? autoAdjustWidth}) → CalloutStyle - Creates a copy of this callout style but with the given fields replaced with the new values.
-
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