Use PrimaryTabRow

This commit is contained in:
Sad Ellie 2023-10-12 00:32:25 +03:00
parent 6e8099550c
commit 783b7d5c86

View File

@ -22,8 +22,8 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.material3.PrimaryTabRow
import androidx.compose.material3.Tab
import androidx.compose.material3.TabRow
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
@ -80,7 +80,7 @@ internal fun DateCalculatorScreen(
Column(
modifier = Modifier.padding(paddingValues),
) {
TabRow(
PrimaryTabRow(
selectedTabIndex = pagerState.currentPage,
) {
allTabs.forEachIndexed { index, tab ->