INNER CODE UNIT · Dart

totalWidth

flutterfx/flutterfx_widgets · lib/avatar-circles/avatar_circles.dart:69

    final totalWidth = size + (totalAvatars - 1) * (size - overlap);

    return SizedBox(
      width: totalWidth,
      height: size,
      child: Stack(
        children: [
          // Render avatars
          ...avatars.asMap().entries.map((entry) {
            final index = entry.key;
            final avatar = entry.value;

            return Positioned(
              left: index * (size - overlap),
              child: GestureDetector(
                onTap: () async {
                  final url = Uri.parse(avatar.profileUrl);
                  if (await canLaunchUrl(url)) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…