mirrored_repositories/desafio_flutter_searchandstay/lib/app/core/ui
import 'package:flutter/material.dart';
import 'package:top_snackbar_flutter/custom_snack_bar.dart';
import 'package:top_snackbar_flutter/top_snack_bar.dart';

mixin Messages<T extends StatefulWidget> on State<T> {
  void showError(String message) {
    showTopSnackBar(
        Overlay.of(context), CustomSnackBar.error(message: message));
  }

  void showInfo(String message) {
    showTopSnackBar(Overlay.of(context), CustomSnackBar.info(message: message));
  }

  void showSucess(String message) {
    showTopSnackBar(
        Overlay.of(context), CustomSnackBar.success(message: message));
  }
}
