mirrored_repositories/To-Do/lib/pages
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

class MyButton extends StatelessWidget {
  final String text;
  VoidCallback onPressed;
  MyButton({super.key, required this.text, required this.onPressed});

  @override
  Widget build(BuildContext context) {
    return MaterialButton(
      onPressed: onPressed,
      color: Colors.deepPurple.shade300,
      child: Text(
        text,
        style: GoogleFonts.actor(
            textStyle:
                const TextStyle(fontWeight: FontWeight.bold, fontSize: 20)),
      ),
    );
  }
}
