intervalPrompt function

Widget intervalPrompt({
  1. required Widget again,
  2. required bool noSound,
})

O listen-interval: ouvir de novo e escolher o nome do intervalo (again é o botão "Ouvir de novo"; noSound, o aviso de saída sem som).

Implementation

Widget intervalPrompt({required Widget again, required bool noSound}) {
  return Builder(
    builder: (context) {
      final t = context.zt;
      return Column(
        children: [
          const ZGap(ZSpace.l),
          Icon(Icons.hearing, size: 56, color: t.colors.inkCaption),
          const ZGap(ZSpace.s),
          Text(
            'Que intervalo é este?',
            textAlign: TextAlign.center,
            style: t.text.display,
          ),
          const ZGap(ZSpace.m),
          again,
          const ZGap(ZSpace.s),
          Text(
            'Escolha o intervalo.',
            textAlign: TextAlign.center,
            style: t.text.caption,
          ),
          if (noSound) noSoundNote(),
        ],
      );
    },
  );
}