Skip to content

Commit

Permalink
commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
commandiron committed Sep 12, 2022
1 parent dc169d9 commit efc082e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> }
}
}
}
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.github.commandiron'
artifactId = 'wheel-picker-compose'
version = '1.0.3'
version = '1.0.4'
}
}
}
Expand Down

0 comments on commit efc082e

Please sign in to comment.