import 'package:flutter/material.dart'; import 'package:pshared/models/invitation/invitation.dart'; class InvitationCardHeader extends StatelessWidget { final Invitation invitation; final String statusLabel; final Color statusColor; const InvitationCardHeader({ super.key, required this.invitation, required this.statusLabel, required this.statusColor, }); @override Widget build(BuildContext context) { final theme = Theme.of(context); return Row( children: [ Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( invitation.inviteeDisplayName, style: theme.textTheme.titleMedium?.copyWith(fontWeight: FontWeight.w600), ), const SizedBox(height: 4), Text( invitation.content.email, style: theme.textTheme.bodyMedium?.copyWith(color: theme.hintColor), ), ], ), ), Chip( backgroundColor: statusColor.withAlpha(40), label: Text( statusLabel, style: TextStyle(color: statusColor, fontWeight: FontWeight.w600), ), ), ], ); } }