engineDecorationImage method

DecorationImage? engineDecorationImage(
  1. BuildContext context,
  2. QuizEngineState state
)

Implementation

DecorationImage? engineDecorationImage(BuildContext context, QuizEngineState state) {
  if (state.quiz.theme.appBackgroundImage == null) {
    return null;
  }
  return DecorationImage(
    opacity: 1,
    image: NetworkImage(
      state.quiz.theme.appBackgroundImage!,
    ),
    fit: BoxFit.cover,
  );
}