From 3b47abdd5496d5fc729ccc23ef50182a2c36c727 Mon Sep 17 00:00:00 2001 From: Emir Demirli Date: Thu, 8 Sep 2022 17:07:47 +0300 Subject: [PATCH] time colon added, version. --- wheel-picker-compose/build.gradle | 2 +- .../wheel_picker_compose/WheelTimePicker.kt | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/wheel-picker-compose/build.gradle b/wheel-picker-compose/build.gradle index fc90474..d513904 100644 --- a/wheel-picker-compose/build.gradle +++ b/wheel-picker-compose/build.gradle @@ -54,7 +54,7 @@ afterEvaluate { groupId = 'com.github.commandiron' artifactId = 'wheel-picker-compose' - version = '1.0.1' + version = '1.0.2' } } } diff --git a/wheel-picker-compose/src/main/java/com/commandiron/wheel_picker_compose/WheelTimePicker.kt b/wheel-picker-compose/src/main/java/com/commandiron/wheel_picker_compose/WheelTimePicker.kt index 31caf9f..bcafc78 100644 --- a/wheel-picker-compose/src/main/java/com/commandiron/wheel_picker_compose/WheelTimePicker.kt +++ b/wheel-picker-compose/src/main/java/com/commandiron/wheel_picker_compose/WheelTimePicker.kt @@ -10,6 +10,7 @@ import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.LocalContentColor import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface +import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember @@ -110,6 +111,16 @@ fun WheelTimePicker( } ) } + Box( + modifier = Modifier.size(size), + contentAlignment = Alignment.Center + ) { + Text( + text = ":", + style = textStyle, + color = textColor + ) + } } }