Skip to content

Instantly share code, notes, and snippets.

@arriolac
Created September 21, 2022 12:26
Show Gist options
  • Save arriolac/f2dad304fd088265d91e57b8d331758f to your computer and use it in GitHub Desktop.
Save arriolac/f2dad304fd088265d91e57b8d331758f to your computer and use it in GitHub Desktop.
// Copyright 2022 Google LLC.
// SPDX-License-Identifier: Apache-2.0
@Composable
fun SingleChoiceQuestion(answers: List<Answer>) {
Column {
if (answers.isEmpty()) {
Text("There are no answers to choose from!")
} else {
answers.forEach { answer ->
SurveyAnswer(answer = answer)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment