Skip to content

Commit

Permalink
Merge pull request #132 from Trendyol/bugfix/quantityPickerComposeAdd…
Browse files Browse the repository at this point in the history
…Animation

Bugfix/quantity picker compose add animation
  • Loading branch information
burakztrk authored Oct 17, 2024
2 parents e8123b7 + 409d3ee commit 33add82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/quantity-picker-compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies {

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


| Attribute | Type | Description |
| ------------------- | ----------------------- | ------------------------------------------------------------ |
| modifier | Modifier | Compose modifier for QuantityPicker |
Expand Down Expand Up @@ -87,6 +86,10 @@ QuantityPicker(
)
```

# Repository From

[https://github.com/selimtoksal/QuantityPicker](https://github.com/selimtoksal/QuantityPicker)

# Contributors

This library is maintained mainly by Trendyol Android Team members but also other Android lovers contributes.
Expand All @@ -98,3 +101,4 @@ Copyright 2023 Trendyol.com Licensed under the Apache License, Version 2.0 (t
http://www.apache.org/licenses/LICENSE-2.0
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.
```

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.trendyol.uicomponents.quantitypicker

import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.size
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.Text
Expand Down Expand Up @@ -59,6 +60,7 @@ internal fun QuantityText(
text = text,
style = textStyle,
modifier = Modifier
.clickable(enabled = false) {}
.background(
shape.backgroundColor,
shape.shape
Expand Down

0 comments on commit 33add82

Please sign in to comment.