Skip to content

Commit

Permalink
Merge pull request #11 from commandiron/1.1.4-development
Browse files Browse the repository at this point in the history
1.1.4 development
  • Loading branch information
commandiron committed Nov 29, 2022
2 parents c713cde + 4a75e8d commit 68fb55a
Show file tree
Hide file tree
Showing 7 changed files with 459 additions and 131 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ import androidx.compose.ui.unit.dp
import com.commandiron.wheel_picker_compose.WheelDatePicker
import com.commandiron.wheel_picker_compose.WheelDateTimePicker
import com.commandiron.wheel_picker_compose.WheelTimePicker
import com.commandiron.wheel_picker_compose.core.TimeFormat
import com.commandiron.wheel_picker_compose.core.WheelPickerDefaults
import com.commandiron.wheelpickercompose.ui.theme.WheelPickerComposeTheme
import java.sql.Time
import java.time.LocalDateTime

class MainActivity : ComponentActivity() {
Expand Down Expand Up @@ -51,9 +53,9 @@ class MainActivity : ComponentActivity() {
startDateTime = LocalDateTime.of(
2025, 10, 30, 5, 0
),
yearsRange = IntRange(1950, 2050),
yearsRange = null,
size = DpSize(200.dp, 100.dp),
backwardsDisabled = false,
backwardsDisabled = true,
textStyle = MaterialTheme.typography.titleSmall,
textColor = Color(0xFFffc300),
selectorProperties = WheelPickerDefaults.selectorProperties(
Expand Down
2 changes: 1 addition & 1 deletion wheel-picker-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ afterEvaluate {

groupId = 'com.git.luolix.topmandiron'
artifactId = 'wheel-picker-compose'
version = '1.1.3'
version = '1.1.4'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import com.commandiron.wheel_picker_compose.core.DefaultWheelTimePicker
import com.commandiron.wheel_picker_compose.core.SelectorProperties
import com.commandiron.wheel_picker_compose.core.TimeFormat
import com.commandiron.wheel_picker_compose.core.WheelPickerDefaults
import java.time.LocalTime

Expand All @@ -20,6 +21,7 @@ import java.time.LocalTime
fun WheelTimePicker(
modifier: Modifier = Modifier,
startTime: LocalTime = LocalTime.now(),
timeFormat: TimeFormat = TimeFormat.HOUR_24,
backwardsDisabled: Boolean = false,
size: DpSize = DpSize(128.dp, 128.dp),
textStyle: TextStyle = MaterialTheme.typography.titleMedium,
Expand All @@ -30,6 +32,7 @@ fun WheelTimePicker(
DefaultWheelTimePicker(
modifier,
startTime,
timeFormat,
backwardsDisabled,
size,
textStyle,
Expand Down

This file was deleted.

Loading

0 comments on commit 68fb55a

Please sign in to comment.