From efc082ec30660569b97d527076c41a725064220f Mon Sep 17 00:00:00 2001 From: Emir Demirli Date: Mon, 12 Sep 2022 13:51:18 +0300 Subject: [PATCH] commit. --- .../wheelpickercompose/MainActivity.kt | 37 +++++++++---------- wheel-picker-compose/build.gradle | 2 +- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/app/src/main/java/com/commandiron/wheelpickercompose/MainActivity.kt b/app/src/main/java/com/commandiron/wheelpickercompose/MainActivity.kt index c935595..1ff124c 100644 --- a/app/src/main/java/com/commandiron/wheelpickercompose/MainActivity.kt +++ b/app/src/main/java/com/commandiron/wheelpickercompose/MainActivity.kt @@ -33,26 +33,23 @@ class MainActivity : ComponentActivity() { horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center ) { -// WheelDateTimePicker { snappedDate, snappedTime -> -// println(snappedDate) -// println(snappedTime) -// } -// WheelDatePicker { snappedDate -> } -// WheelTimePicker { snappedTime -> } -// WheelTextPicker(texts = (1..6).map { it.toString() }) -// WheelPicker(count = 6) { index, snappedIndex -> -// Card(Modifier.size(128.dp).padding(8.dp)) {} -// } - WheelDateTimePicker( - disablePastDate = true, - size = DpSize(200.dp, 100.dp), - textStyle = MaterialTheme.typography.titleSmall, - textColor = Color(0xFFffc300), - selectorEnabled = true, - selectorShape = RoundedCornerShape(0.dp), - selectorColor = Color(0xFFf1faee).copy(alpha = 0.2f), - selectorBorder = BorderStroke(2.dp, Color(0xFFf1faee)) - ) { snappedDate, snappedTime -> } + WheelDateTimePicker { snappedDate, snappedTime -> } + WheelDatePicker { snappedDate -> } + WheelTimePicker { snappedTime -> } + WheelTextPicker(texts = (1..6).map { it.toString() }) + WheelPicker(count = 6) { index, snappedIndex -> + Card(Modifier.size(128.dp).padding(8.dp)) {} + } +// WheelDateTimePicker( +// disablePastDate = true, +// size = DpSize(200.dp, 100.dp), +// textStyle = MaterialTheme.typography.titleSmall, +// textColor = Color(0xFFffc300), +// selectorEnabled = true, +// selectorShape = RoundedCornerShape(0.dp), +// selectorColor = Color(0xFFf1faee).copy(alpha = 0.2f), +// selectorBorder = BorderStroke(2.dp, Color(0xFFf1faee)) +// ) { snappedDate, snappedTime -> } } } } diff --git a/wheel-picker-compose/build.gradle b/wheel-picker-compose/build.gradle index 8200181..32c1fc5 100644 --- a/wheel-picker-compose/build.gradle +++ b/wheel-picker-compose/build.gradle @@ -55,7 +55,7 @@ afterEvaluate { groupId = 'com.github.commandiron' artifactId = 'wheel-picker-compose' - version = '1.0.3' + version = '1.0.4' } } }