mirrored_repositories/espresso-cash-public/packages/espressocash_app/lib
import 'package:flutter/material.dart';

import 'button.dart';

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

  final String text;
  final VoidCallback? onPressed;

  @override
  Widget build(BuildContext context) => Container(
        margin: const EdgeInsets.symmetric(vertical: 24),
        // TODO(KB): Check if needed
        // ignore: avoid-single-child-column-or-row
        child: Column(
          mainAxisAlignment: MainAxisAlignment.end,
          children: [
            CpButton(
              key: keyBottomButton,
              onPressed: onPressed,
              minWidth: 250,
              text: text,
            ),
          ],
        ),
      );
}

const keyBottomButton = Key('bottomButton');
