Skip to content

Commit

Permalink
Using HorizontalDivider instead of Divider as its deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
shangeethsivan committed Jan 1, 2025
1 parent d10602e commit 5ca6e31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.statusBars
import androidx.compose.foundation.layout.windowInsetsTopHeight
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
Expand Down Expand Up @@ -196,7 +196,7 @@ private fun ProfileItem(text: String, @DrawableRes profilePic: Int?, onProfileCl

@Composable
fun DividerItem(modifier: Modifier = Modifier) {
Divider(
HorizontalDivider(
modifier = modifier,
color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.12f)
)
Expand Down

0 comments on commit 5ca6e31

Please sign in to comment.