mirrored_repositories/Expenses_Tracker_App/lib/screens/add_expense
import 'package:expenses_tracker/utils/constants/colors.dart';
import 'package:expenses_tracker/utils/constants/tr_text.dart';
import 'package:flutter/material.dart';

class SaveButton extends StatelessWidget {
  const SaveButton({
    super.key,
    required this.onPressed,
  });

  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: MediaQuery.of(context).size.width,
      child: ElevatedButton(
        onPressed: onPressed,
        child: Text(
          ETexts.save,
          style: Theme.of(context)
              .textTheme
              .titleLarge!
              .apply(color: EColors.white),
        ),
      ),
    );
  }
}
