MobilApp/lib/widgets/map/team_member_widget.dart

50 lines
1.3 KiB
Dart
Raw Permalink Normal View History

2026-06-23 15:21:20 +02:00
import 'package:flutter/material.dart';
class TeamMemberWidget extends StatelessWidget {
final String name;
final Color color;
const TeamMemberWidget({required this.name, required this.color});
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
// Névbuborék
Container(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 1),
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(5),
boxShadow: [
BoxShadow(
color: Colors.black26,
blurRadius: 3,
offset: const Offset(0, 1)),
],
),
child: Text(
name,
style: const TextStyle(
color: Colors.white,
fontSize: 11,
fontWeight: FontWeight.w600,
),
overflow: TextOverflow.ellipsis,
maxLines: 1,
),
),
// Nyíl / lokátor ikon
Icon(
Icons.person_pin_circle,
color: color,
size: 24,
shadows: const [
Shadow(color: Colors.black26, blurRadius: 4),
],
),
],
);
}
}