Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change strokeWidth to outlineStroke #50

Merged
merged 1 commit into from
Jan 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import androidx.compose.ui.unit.dp
* @param modifier Modifier for table
* @param fixedTopSize Number of rows to be fixed at the top
* @param fixedStartSize Number of columns to be fixed at the start
* @param strokeWidth Width of the outline stroke in pixels
* @param outlineStroke outline stroke
* @param outlineColor Color of the outline
* @param horizontalScrollState ScrollState for horizontal scroll
* @param verticalScrollState ScrollState for vertical scroll
Expand All @@ -49,7 +49,7 @@ fun AutoSizeTable(
modifier: Modifier = Modifier,
fixedTopSize: Int = 1,
fixedStartSize: Int = 1,
strokeWidth: Float = 5.0f,
outlineStroke: Stroke = Stroke(width = 5.0f),
outlineColor: Color = Color.Black,
horizontalScrollState: ScrollState = rememberScrollState(),
verticalScrollState: ScrollState = rememberScrollState(),
Expand All @@ -65,7 +65,7 @@ fun AutoSizeTable(
color = outlineColor,
topLeft = Offset(0f, 0f),
size = Size(width = size.width, height = size.height),
style = Stroke(width = strokeWidth),
style = outlineStroke,
)
}

Expand Down