pub struct UnderlineTabIndicator {
pub border_radius: Option<BorderRadius>,
pub border_side: BorderSide,
pub insets: EdgeInsetsGeometry,
}Expand description
Used with TabBar::indicator to draw a horizontal line below the
selected tab.
The selected tab underline is inset from the tab’s boundary by insets.
The border_side defines the line’s color and weight.
The TabBar::indicator_size property can be used to define the indicator’s
bounds in terms of its (centered) widget with TabBarIndicatorSize::Label,
or the entire tab with TabBarIndicatorSize::Tab.
Fields§
§border_radius: Option<BorderRadius>The radius of the indicator’s corners.
If this value is non-null, rounded rectangular tab indicator is drawn, otherwise rectangular tab indicator is drawn.
border_side: BorderSideThe color and weight of the horizontal line drawn below the selected tab.
insets: EdgeInsetsGeometryLocates the selected tab’s underline relative to the tab’s boundary.
The TabBar::indicator_size property can be used to define the tab
indicator’s bounds in terms of its (centered) tab widget with
TabBarIndicatorSize::Label, or the entire tab with
TabBarIndicatorSize::Tab.
Implementations§
Source§impl UnderlineTabIndicator
impl UnderlineTabIndicator
Sourcepub fn new() -> UnderlineTabIndicator
pub fn new() -> UnderlineTabIndicator
Create an underline style selected tab indicator; Dart’s named arguments are the setters.
Sourcepub fn border_radius(self, border_radius: BorderRadius) -> UnderlineTabIndicator
pub fn border_radius(self, border_radius: BorderRadius) -> UnderlineTabIndicator
Dart UnderlineTabIndicator(borderRadius:).
Sourcepub fn border_side(self, border_side: BorderSide) -> UnderlineTabIndicator
pub fn border_side(self, border_side: BorderSide) -> UnderlineTabIndicator
Dart UnderlineTabIndicator(borderSide:).
Sourcepub fn insets(
self,
insets: impl Into<EdgeInsetsGeometry>,
) -> UnderlineTabIndicator
pub fn insets( self, insets: impl Into<EdgeInsetsGeometry>, ) -> UnderlineTabIndicator
Dart UnderlineTabIndicator(insets:).
Trait Implementations§
Source§impl Clone for UnderlineTabIndicator
impl Clone for UnderlineTabIndicator
Source§impl Debug for UnderlineTabIndicator
impl Debug for UnderlineTabIndicator
Source§impl Decoration for UnderlineTabIndicator
impl Decoration for UnderlineTabIndicator
Source§fn lerp_from(&self, a: Option<&dyn Decoration>, t: f64) -> Option<DecorationRef>
fn lerp_from(&self, a: Option<&dyn Decoration>, t: f64) -> Option<DecorationRef>
Decoration (which may be of a
different class) to this. Read moreSource§fn lerp_to(&self, b: Option<&dyn Decoration>, t: f64) -> Option<DecorationRef>
fn lerp_to(&self, b: Option<&dyn Decoration>, t: f64) -> Option<DecorationRef>
this to another Decoration (which may be of
a different class).Source§fn create_box_painter(
&self,
on_changed: Option<VoidCallback>,
) -> Box<dyn BoxPainter>
fn create_box_painter( &self, on_changed: Option<VoidCallback>, ) -> Box<dyn BoxPainter>
BoxPainter that will paint this decoration.Source§fn get_clip_path(&self, rect: Rect, text_direction: TextDirection) -> Path
fn get_clip_path(&self, rect: Rect, text_direction: TextDirection) -> Path
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Decoration.debugFillProperties, inherited from Diagnosticable: a subclass
adds its own properties and calls this first, as Dart’s super does.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Decoration.toDiagnosticsNode(name:), inherited from Diagnosticable; a
dyn Decoration cannot name the Sized Diagnosticable, so the bridge lives here.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Decoration.toStringShort: the runtime type.Source§fn debug_assert_is_valid(&self) -> bool
fn debug_assert_is_valid(&self) -> bool
Source§fn padding(&self) -> EdgeInsetsGeometry
fn padding(&self) -> EdgeInsetsGeometry
Source§fn is_complex(&self) -> bool
fn is_complex(&self) -> bool
Source§fn hit_test(
&self,
size: Size,
position: Offset,
text_direction: Option<TextDirection>,
) -> bool
fn hit_test( &self, size: Size, position: Offset, text_direction: Option<TextDirection>, ) -> bool
Source§fn eq_decoration(&self, other: &(dyn Decoration + 'static)) -> bool
fn eq_decoration(&self, other: &(dyn Decoration + 'static)) -> bool
== is identity; subclasses that override
== implement this.