diff --git a/concrete/src/main/kotlin/glass/yasan/concrete/component/SpacerHorizontal.kt b/concrete/src/main/kotlin/glass/yasan/concrete/component/SpacerHorizontal.kt deleted file mode 100644 index e165a8b..0000000 --- a/concrete/src/main/kotlin/glass/yasan/concrete/component/SpacerHorizontal.kt +++ /dev/null @@ -1,15 +0,0 @@ -package glass.yasan.concrete.component - -import androidx.compose.runtime.Composable -import androidx.compose.ui.unit.Dp -import androidx.compose.ui.unit.dp - -@Composable -public fun SpacerHorizontal( - width: Dp, -) { - Spacer( - width = width, - height = 0.dp, - ) -} \ No newline at end of file diff --git a/concrete/src/main/kotlin/glass/yasan/concrete/component/SpacerVertical.kt b/concrete/src/main/kotlin/glass/yasan/concrete/component/SpacerVertical.kt deleted file mode 100644 index fac220a..0000000 --- a/concrete/src/main/kotlin/glass/yasan/concrete/component/SpacerVertical.kt +++ /dev/null @@ -1,15 +0,0 @@ -package glass.yasan.concrete.component - -import androidx.compose.runtime.Composable -import androidx.compose.ui.unit.Dp -import androidx.compose.ui.unit.dp - -@Composable -public fun SpacerVertical( - height: Dp, -) { - Spacer( - width = 0.dp, - height = height, - ) -} diff --git a/concrete/src/main/kotlin/glass/yasan/concrete/component/extension/SpacerExtensions.kt b/concrete/src/main/kotlin/glass/yasan/concrete/component/extension/SpacerExtensions.kt index 4428b31..d96f0d3 100644 --- a/concrete/src/main/kotlin/glass/yasan/concrete/component/extension/SpacerExtensions.kt +++ b/concrete/src/main/kotlin/glass/yasan/concrete/component/extension/SpacerExtensions.kt @@ -2,13 +2,12 @@ package glass.yasan.concrete.component.extension import androidx.compose.foundation.lazy.LazyListScope import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.dp import glass.yasan.concrete.component.Spacer -import glass.yasan.concrete.component.SpacerHorizontal -import glass.yasan.concrete.component.SpacerVertical public fun LazyListScope.spacer( - width: Dp, - height: Dp, + width: Dp = 0.dp, + height: Dp = 0.dp, ) { item { Spacer( @@ -17,23 +16,3 @@ public fun LazyListScope.spacer( ) } } - -public fun LazyListScope.spacerHorizontal( - width: Dp, -) { - item { - SpacerHorizontal( - width = width, - ) - } -} - -public fun LazyListScope.spacerVertical( - height: Dp, -) { - item { - SpacerVertical( - height = height, - ) - } -} \ No newline at end of file