Skip to content

Commit 33add82

Browse files
authored
Merge pull request #132 from Trendyol/bugfix/quantityPickerComposeAddAnimation
Bugfix/quantity picker compose add animation
2 parents e8123b7 + 409d3ee commit 33add82

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libraries/quantity-picker-compose/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ dependencies {
2828

2929
You can add **QuantityPicker** wherever you want with your modifier
3030

31-
3231
| Attribute | Type | Description |
3332
| ------------------- | ----------------------- | ------------------------------------------------------------ |
3433
| modifier | Modifier | Compose modifier for QuantityPicker |
@@ -87,6 +86,10 @@ QuantityPicker(
8786
)
8887
```
8988

89+
# Repository From
90+
91+
[https://github.com/selimtoksal/QuantityPicker](https://github.com/selimtoksal/QuantityPicker)
92+
9093
# Contributors
9194

9295
This library is maintained mainly by Trendyol Android Team members but also other Android lovers contributes.
@@ -98,3 +101,4 @@ Copyright 2023 Trendyol.com Licensed under the Apache License, Version 2.0 (t
98101
http://www.apache.org/licenses/LICENSE-2.0
99102
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
100103
```
104+

libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityText.kt

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.trendyol.uicomponents.quantitypicker
22

33
import androidx.compose.animation.Crossfade
44
import androidx.compose.foundation.background
5+
import androidx.compose.foundation.clickable
56
import androidx.compose.foundation.layout.size
67
import androidx.compose.material.CircularProgressIndicator
78
import androidx.compose.material.Text
@@ -59,6 +60,7 @@ internal fun QuantityText(
5960
text = text,
6061
style = textStyle,
6162
modifier = Modifier
63+
.clickable(enabled = false) {}
6264
.background(
6365
shape.backgroundColor,
6466
shape.shape

0 commit comments

Comments
 (0)