From 8dc5a7f07a57fc5c23ea041594a136787c2e5da2 Mon Sep 17 00:00:00 2001 From: "burak.ozturk1" Date: Mon, 13 Jan 2025 09:06:59 +0300 Subject: [PATCH] Added Text Padding --- .../uicomponents/quantitypicker/QuantityPicker.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityPicker.kt b/libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityPicker.kt index 9a90a69..3b58121 100644 --- a/libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityPicker.kt +++ b/libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityPicker.kt @@ -5,12 +5,14 @@ import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.padding import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp @Composable fun QuantityPicker( @@ -91,7 +93,10 @@ internal fun VerticalQuantityPicker( ) AnimatedVisibility(visible = quantityData.currentQuantity > 0 || showLoading) { - Column(horizontalAlignment = Alignment.CenterHorizontally) { + Column( + modifier = Modifier.padding(top = 2.dp), + horizontalAlignment = Alignment.CenterHorizontally + ) { QuantityText( quantityData = quantityData, shape = quantityTextShape, @@ -139,7 +144,10 @@ internal fun HorizontalQuantityPicker( ) { AnimatedVisibility(visible = quantityData.currentQuantity > 0 || showLoading) { - Row(verticalAlignment = Alignment.CenterVertically) { + Row( + modifier = Modifier.padding(top = 2.dp), + verticalAlignment = Alignment.CenterVertically + ) { QuantitySubtractIcon( icons = icons, quantityData = quantityData,