mirrored_repositories/TicTacToe
// ignore_for_file: unnecessary_new, prefer_typing_uninitialized_variables

import 'package:flutter/material.dart';

class CustomDialog extends StatelessWidget {
  final title;
  final content;
  final VoidCallback callback;
  final actionText;

  CustomDialog(this.title, this.content, this.callback,
      [this.actionText = "Reset"]);
  @override
  Widget build(BuildContext context) {
    return new AlertDialog(
        title: new Text(title),
        content: new Text(content),
        actions: <Widget>[
          new TextButton(
            onPressed: callback,
            style: TextButton.styleFrom(
              backgroundColor: Colors.white,
            ),
            child: Text(actionText),
          )
        ]);
  }
}
