TabRowDefaults
object TabRowDefaults
Contains default implementations and values used for TabRow.
Summary
Public functions |
|
---|---|
@Composable Unit |
Default |
@Composable Unit |
Default indicator, which will be positioned at the bottom of the |
Modifier |
Modifier.tabIndicatorOffset(currentTabPosition: TabPosition)
|
Public properties |
|
---|---|
Dp |
Default thickness for |
Dp |
Default height for |
Dp |
The default padding from the starting edge before a tab in a |
Constants
Public functions
Divider
@Composable
fun Divider(
modifier: Modifier = Modifier,
thickness: Dp = DividerThickness,
color: Color = LocalContentColor.current.copy(alpha = DividerOpacity)
): Unit
Default Divider
, which will be positioned at the bottom of the TabRow
, underneath the indicator.
Indicator
@Composable
fun Indicator(
modifier: Modifier = Modifier,
height: Dp = IndicatorHeight,
color: Color = LocalContentColor.current
): Unit
Default indicator, which will be positioned at the bottom of the TabRow
, on top of the divider.
tabIndicatorOffset
fun Modifier.tabIndicatorOffset(currentTabPosition: TabPosition): Modifier
Modifier
that takes up all the available width inside the TabRow
, and then animates the offset of the indicator it is applied to, depending on the currentTabPosition
.
Parameters | |
---|---|
currentTabPosition: TabPosition |
|
Public properties
ScrollableTabRowPadding
val ScrollableTabRowPadding: Dp
The default padding from the starting edge before a tab in a ScrollableTabRow
.