brandLogo method

Widget brandLogo(
  1. BuildContext context,
  2. QuizEngineState state
)

Implementation

Widget brandLogo(BuildContext context, QuizEngineState state) {
  return Container(
    margin: const EdgeInsets.only(bottom: gap, top: gap),
    clipBehavior: Clip.antiAlias,
    constraints: BoxConstraints(maxHeight: state.quiz.theme.logoHeight, minHeight: state.quiz.theme.logoHeight),
    decoration: BoxDecoration(
      borderRadius: BorderRadius.circular(radius),
    ),
    child: Image.network(
      state.quiz.theme.logoImage!,
      alignment: Alignment.topLeft,
    ),
  );
}