theoryPromptOf function

Widget theoryPromptOf({
  1. required String text,
  2. required CourseFiles files,
  3. Widget? score,
})

A pergunta de teoria (EX21): o enunciado text e, quando tem, a partitura (score).

Implementation

Widget theoryPromptOf({
  required String text,
  required CourseFiles files,
  Widget? score,
}) {
  return Column(
    crossAxisAlignment: CrossAxisAlignment.stretch,
    children: [
      MarkdownView(text: text, files: files),
      if (score != null) ...[const ZGap(ZSpace.m), score],
    ],
  );
}