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

import 'rounded_rectangle.dart';

class CpMessageInfoWidget extends StatelessWidget {
  const CpMessageInfoWidget({
    super.key,
    required this.content,
    this.backgroundColor,
    this.padding = const EdgeInsets.all(24),
  });

  final Widget content;
  final Color? backgroundColor;
  final EdgeInsetsGeometry padding;

  @override
  Widget build(BuildContext context) => CpRoundedRectangle(
        backgroundColor: backgroundColor,
        padding: padding,
        child: Center(
          child: DefaultTextStyle(
            style: const TextStyle(
              color: Colors.white,
              fontSize: 18,
              fontWeight: FontWeight.w400,
            ),
            textAlign: TextAlign.left,
            child: content,
          ),
        ),
      );
}
