content: import 'package:flutter/material.dart';
  import 'package:today/my_buttons.dart';
  
  class DialogBox extends StatelessWidget {
    final controller;
    VoidCallback onSave;
    VoidCallback onCancel;
    DialogBox({
      super.key,
      required this.controller,
      required this.onSave,
      required this.onCancel,
    });
  
    @override
    Widget build(BuildContext context) {
      return AlertDialog(
        backgroundColor: Colors.deepPurple[200],
        content: Container(
          height: 120,
          child:
              Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
            TextField(
              controller: controller,
              decoration: InputDecoration(
                border: OutlineInputBorder(),
                hintText: "Add New Task",
              ),
            ),
  
            // save and cancel buttons
            Row(
              mainAxisAlignment: MainAxisAlignment.end,
              children: [
                MyButtons(text: "Save", onPressed: onSave),
                const SizedBox(width: 8),
                MyButtons(text: "Cancel", onPressed: onCancel),
              ],
            ),
          ]),
        ),
      );
    }
  }
  