myCustomConferenceMiniCard function

Widget myCustomConferenceMiniCard({
  1. required String name,
  2. required bool showWaveform,
  3. dynamic overlayPosition,
  4. dynamic barColor,
  5. dynamic textColor,
  6. dynamic imageSource,
  7. dynamic roundedImage,
  8. dynamic imageStyle,
})

Custom MiniCard builder for conference sessions Displays small participant cards with conference-specific styling

Implementation

Widget myCustomConferenceMiniCard({
  required String name,
  required bool showWaveform,
  overlayPosition,
  barColor,
  textColor,
  imageSource,
  roundedImage,
  imageStyle,
}) {
  return Container(
    width: 80,
    height: 80,
    decoration: BoxDecoration(
      gradient: LinearGradient(
        colors: showWaveform
            ? [Colors.blue.shade600, Colors.teal.shade400]
            : [Colors.grey.shade700, Colors.grey.shade500],
        begin: Alignment.topLeft,
        end: Alignment.bottomRight,
      ),
      borderRadius: BorderRadius.circular(10),
      border: Border.all(
        color: showWaveform ? Colors.white : Colors.grey.shade400,
        width: 2,
      ),
    ),
    child: Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Icon(
          showWaveform ? Icons.groups : Icons.person,
          color: Colors.white,
          size: 24,
        ),
        SizedBox(height: 4),
        Text(
          name,
          style: TextStyle(
            color: Colors.white,
            fontWeight: FontWeight.bold,
            fontSize: 10,
          ),
          maxLines: 1,
          overflow: TextOverflow.ellipsis,
        ),
      ],
    ),
  );
}