mirrored_repositories/NASA-MobileApp/lib
import 'package:flutter/material.dart';

class CustomElevatedButton extends StatelessWidget {
  late String text;
  late Function() onPressed;

  CustomElevatedButton({
    required this.onPressed,
    required this.text,
  });

  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
      onPressed: onPressed,
      style: ElevatedButton.styleFrom(
        primary: Theme.of(context).canvasColor,
      ),
      child: Text(
        text,
        style: TextStyle(
          color: Theme.of(context).primaryColor,
        ),
      ),
    );
  }
}
