mirrored_repositories/get_wallpaper/lib/presentation
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

import '../../domain/domain.dart';

class DefaultDialog {
  late BuildContext context;
  DefaultDialog(this.context);

  Future<void> dialog(
    context, {
    required Wallpaper? wallpaper,
    required String text,
    required Widget content,
  }) async {
    return showDialog<void>(
      context: context,
      builder: (context) {
        return AlertDialog.adaptive(
          backgroundColor: Colors.black.withOpacity(0.5),
          title: Text(text),
          titleTextStyle: GoogleFonts.inter(
            color: Colors.white,
            fontSize: 20,
            fontWeight: FontWeight.bold,
          ),
          content: content,
        );
      },
    );
  }
}
