mirrored_repositories/Livetape/lib/screens
import 'package:flutter/material.dart';
import 'package:livetape/utils/styles.dart';

class appButton extends StatelessWidget {
  final String text;
  final VoidCallback onClick;

  const appButton({Key? key, required this.text, required this.onClick})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(8.0),
      child: ElevatedButton(
        style: ElevatedButton.styleFrom(
            elevation: 2,
            primary: AppColors.lightBlue,
            minimumSize: Size(double.infinity, 50),
            shape: RoundedRectangleBorder(
                borderRadius: BorderRadius.circular(15))),
        onPressed: onClick,
        child: Text(
          text,
          style: TextStyle(fontSize: 20, color: Colors.white),
        ),
      ),
    );
  }
}
