codeslubber
01/03/2020, 1:50 AMDatePicker
with Compose yet? trying to invoke it as a dialog.. the playground doesn’t have an example.. are examples of doing AlertDialog
of coursePhilip Blandford
01/07/2020, 6:45 PMcodeslubber
01/07/2020, 6:46 PM@Composable
fun showDatePicker() {
if (showDialog.value){
Log.d(logTag, "inside dialog...")
DatePickerDialog(
context,
DatePickerDialog.OnDateSetListener { view, year, month, day ->
Log.d("DEBUG", "inside onDateSetListener..")
},
2020,
0,
1
).show()
}
}
showDialog
property..Philip Blandford
01/07/2020, 6:51 PM