Skip to content

Instantly share code, notes, and snippets.

@waseefakhtar
Created August 29, 2023 21:53
Show Gist options
  • Save waseefakhtar/a9c429505c623e24a9792f5fbd66218d to your computer and use it in GitHub Desktop.
Save waseefakhtar/a9c429505c623e24a9792f5fbd66218d to your computer and use it in GitHub Desktop.
@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