scoreWait function

Widget scoreWait({
  1. required bool small,
  2. bool fill = false,
})

O quadro de espera enquanto a partitura da pergunta não chega (small é a versão da revelação, mais baixa; fill ocupa a altura que sobra).

Implementation

Widget scoreWait({required bool small, bool fill = false}) {
  return Builder(
    builder: (context) {
      final t = context.zt;
      return Container(
        height: fill ? null : (small ? 140 : 180),
        decoration: BoxDecoration(
          color: t.colors.chip,
          borderRadius: BorderRadius.circular(t.radius.s),
        ),
        child: const Center(child: CircularProgressIndicator()),
      );
    },
  );
}