Automatic Lint

This commit is contained in:
Syer10
2022-08-02 02:20:27 +00:00
parent 196f8b9547
commit c79bc9babd
9 changed files with 10 additions and 10 deletions

View File

@@ -106,7 +106,7 @@ class GridScrollbarAdapter(
private val scrollState: LazyGridState,
private val gridCells: GridCells,
private val density: Density,
private val spacing: Dp,
private val spacing: Dp
) : ScrollbarAdapter {
override val scrollOffset: Float
get() = (scrollState.firstVisibleItemIndex / itemsPerRow).coerceAtLeast(0) * averageItemSize + scrollState.firstVisibleItemScrollOffset

View File

@@ -23,7 +23,7 @@ import androidx.compose.ui.input.pointer.PointerButton
fun Modifier.onRightClickContextMenu(
items: @Composable () -> List<ContextMenuItem>,
enabled: Boolean = true,
enabled: Boolean = true
) = composed {
var expanded by remember { mutableStateOf(false) }
CursorDropdownMenu(
@@ -44,6 +44,6 @@ fun Modifier.onRightClickContextMenu(
Modifier.onClick(
enabled = enabled,
matcher = PointerMatcher.mouse(PointerButton.Secondary),
onClick = { expanded = true },
onClick = { expanded = true }
)
}