File tree Expand file tree Collapse file tree 6 files changed +8
-68
lines changed
src/main/java/com/smarttoolfactory/slider Expand file tree Collapse file tree 6 files changed +8
-68
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ android {
3636 compose true
3737 }
3838 composeOptions {
39- kotlinCompilerExtensionVersion compose_version
39+ kotlinCompilerExtensionVersion = " 1.4.0 "
4040 }
4141 packagingOptions {
4242 resources {
Original file line number Diff line number Diff line change 11buildscript {
22 ext {
3- compose_version = ' 1.3 .0-beta01 '
3+ compose_version = ' 1.4 .0-alpha05 '
44 }
55}// Top-level build file where you can add configuration options common to all sub-projects/modules.
66plugins {
77 id ' com.android.application' version ' 7.2.2' apply false
88 id ' com.android.library' version ' 7.2.2' apply false
9- id ' org.jetbrains.kotlin.android' version ' 1.7.10 ' apply false
9+ id ' org.jetbrains.kotlin.android' version ' 1.8.0 ' apply false
1010}
1111
1212task clean (type : Delete ) {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ android {
3131 compose true
3232 }
3333 composeOptions {
34- kotlinCompilerExtensionVersion compose_version
34+ kotlinCompilerExtensionVersion = " 1.4.0 "
3535 }
3636
3737 packagingOptions {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import androidx.compose.foundation.Canvas
55import androidx.compose.foundation.gestures.detectDragGestures
66import androidx.compose.foundation.gestures.detectTapGestures
77import androidx.compose.foundation.layout.*
8+ import androidx.compose.material.minimumInteractiveComponentSize
89import androidx.compose.runtime.Composable
910import androidx.compose.runtime.mutableStateOf
1011import androidx.compose.runtime.remember
@@ -137,7 +138,7 @@ fun ColorfulIconSlider(
137138
138139 SliderComposeLayout (
139140 modifier = modifier
140- .minimumTouchTargetSize ()
141+ .minimumInteractiveComponentSize ()
141142 .requiredSizeIn(
142143 minWidth = ThumbRadius * 2 ,
143144 minHeight = ThumbRadius * 2 ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import androidx.compose.foundation.gestures.detectDragGestures
77import androidx.compose.foundation.gestures.detectTapGestures
88import androidx.compose.foundation.layout.*
99import androidx.compose.foundation.shape.CircleShape
10+ import androidx.compose.material.minimumInteractiveComponentSize
1011import androidx.compose.runtime.*
1112import androidx.compose.ui.Alignment
1213import androidx.compose.ui.Modifier
@@ -167,7 +168,7 @@ fun ColorfulSlider(
167168 }
168169 BoxWithConstraints (
169170 modifier = modifier
170- .minimumTouchTargetSize ()
171+ .minimumInteractiveComponentSize ()
171172 .requiredSizeIn(
172173 minWidth = ThumbRadius * 2 ,
173174 minHeight = ThumbRadius * 2
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments