mirrored_repositories/Wordy/lib
import 'package:achievement_view/achievement_view.dart';
import 'package:flutter/material.dart';


import 'package:wordy/presentation/widgets/quiz_answear.dart';
import 'package:wordy/presentation/widgets/toast/quiz_answer_toast.dart';

import '../domain/models/achievement.dart';
import '../presentation/widgets/toast/success_toast.dart';

class ToastManager {
  static void achievementNotification(
      BuildContext context, Achievement achievement) {
    AchievementView(
      duration: const Duration(milliseconds: 200),
      title: achievement.name,
      subTitle: achievement.description,
      isCircle: false,
      listener: print,
    ).show(context);
  }

  static Widget quizAnswerToast(BuildContext context, String choosenAnswer,
      String correctAnswer, bool correct) {
    return QuizAnswerToast(
      deviceDimensions: MediaQuery.of(context).size,
      choosenAnswer: choosenAnswer,
      correctAnswer: correctAnswer,
      correct: correct,
    );
  }
}
