Created
August 29, 2023 21:53
-
-
Save waseefakhtar/a9c429505c623e24a9792f5fbd66218d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OptIn(ExperimentalMaterial3Api::class) | |
@Composable | |
fun AddMedicationScreen() { | |
// Previously implemented. | |
var endDate by rememberSaveable { mutableStateOf(Date().time) } | |
Column( | |
modifier = Modifier | |
.padding(16.dp, 16.dp) | |
.verticalScroll(rememberScrollState()), | |
verticalArrangement = Arrangement.spacedBy(8.dp) | |
) { | |
// Previously implemented. | |
Spacer(modifier = Modifier.padding(4.dp)) | |
EndDateTextField { endDate = it } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment