mirrored_repositories/FlashChat/lib
import 'package:flutter/material.dart';

class MyButton extends StatelessWidget {
  final String label;
  final VoidCallback? onPressed;

  MyButton({required this.label, required this.onPressed});

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.symmetric(vertical: 16.0),
      child: Material(
        elevation: 5.0,
        color: Colors.black,
        borderRadius: BorderRadius.circular(30.0),
        child: MaterialButton(
          onPressed: onPressed,
          minWidth: 200.0,
          height: 42.0,
          child: Text(
            label,
            // ignore: prefer_const_constructors
            style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold
                // fontWeight: FontWeight.bold,
                ),
          ),
        ),
      ),
    );
  }
}
