import 'package:flutter/material.dart'; import '../models/profile.dart'; class ProfileCard extends StatelessWidget { final Profile profile; final VoidCallback onTap; final VoidCallback? onLongPress; const ProfileCard({ super.key, required this.profile, required this.onTap, this.onLongPress, }); @override Widget build(BuildContext context) { return Card( margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 4), child: ListTile( title: Text( profile.name, style: const TextStyle(fontWeight: FontWeight.bold), ), subtitle: Text(profile.gruppename ?? 'Keine Gruppe'), trailing: Text( profile.profilID, style: const TextStyle(color: Colors.grey, fontSize: 12), ), onTap: onTap, onLongPress: onLongPress, ), ); } }