import 'package:flutter/material.dart';

import '../../../../theming/app_theme.dart';

/// Shared surface for rendered ticker content so the "Aktuelles" home and the
/// sub-pages get identical margin, padding and background tint.
class TickerContentCard extends StatelessWidget {
  final Widget child;

  const TickerContentCard({super.key, required this.child});

  @override
  Widget build(BuildContext context) => Card(
    margin: const EdgeInsets.fromLTRB(
      AppSpacing.sm,
      AppSpacing.sm,
      AppSpacing.sm,
      0,
    ),
    child: Padding(padding: const EdgeInsets.all(AppSpacing.md), child: child),
  );
}
