ContainerTabIndicator class Null safety

A customizable Decoration which can define the appearance of the selected tab indicator.

Inheritance

Constructors

ContainerTabIndicator({double? width, double? widthFraction, double? height, double? heightFraction, EdgeInsetsGeometry padding = const EdgeInsets.all(0.0), Color color = const Color(0xFF2196F3), BorderRadius radius = BorderRadius.zero, double borderWidth = 0.0, Color borderColor = const Color(0xFF2196F3)})
const

Properties

borderColor Color
The border color of the tab indicator.
final
borderWidth double
The border width of the tab indicator.
final
color Color
The background color of the tab indicator.
final
hashCode int
The hash code for this object.
read-onlyinherited
height double?
The height of the tab indicator.
final
heightFraction double?
Multiplies the available height, e.g. if set to 0.5 it uses half of the available height.
final
isComplex bool
Whether this decoration is complex enough to benefit from caching its painting.
read-onlyinherited
padding EdgeInsetsGeometry
The padding of the tab indicator.
final
radius BorderRadius
The border radius of the tab indicator.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
width double?
The width of the tab indicator.
final
widthFraction double?
Multiplies the available width, e.g. if set to 0.5 it uses half of the available width.
final

Methods

createBoxPainter([VoidCallback? onChanged]) → _ContainerTabPainter
Returns a BoxPainter that will paint this decoration.
override
debugAssertIsValid() bool
In debug mode, throws an exception if the object is not in a valid configuration. Otherwise, returns true.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getClipPath(Rect rect, TextDirection textDirection) Path
Returns a closed Path that describes the outer edge of this decoration.
inherited
hitTest(Size size, Offset position, {TextDirection? textDirection}) bool
Tests whether the given point, on a rectangle of a given size, would be considered to hit the decoration or not. For example, if the decoration only draws a circle, this function might return true if the point was inside the circle and false otherwise.
inherited
lerpFrom(Decoration? a, double t) Decoration?
Linearly interpolates from another Decoration (which may be of a different class) to this.
inherited
lerpTo(Decoration? b, double t) Decoration?
Linearly interpolates from this to another Decoration (which may be of a different class).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
inherited