mirrored_repositories/Kimit-P7-G136/se7ety_app_1_9/lib/core
import 'package:flutter/material.dart';
import 'package:se7ety_app_1_9/core/utils/colors.dart';

class CustomButton extends StatelessWidget {
  const CustomButton(
      {super.key, required this.text, this.onTap, this.height = 50});

  final String text;
  final void Function()? onTap;
  final double height;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onTap,
      child: Container(
        height: height,
        width: double.infinity,
        alignment: Alignment.center,
        decoration: BoxDecoration(
            color: AppColors.color1, borderRadius: BorderRadius.circular(10)),
        child: Text(
          text,
          style: TextStyle(
              color: AppColors.scaffoldBG, fontWeight: FontWeight.bold),
        ),
      ),
    );
  }
}
