buildProfile method

Widget buildProfile(
  1. BuildContext context,
  2. String name
)

Builds a profile widget for the given user name.

Uses the custom profileBuilder if provided, otherwise returns a default profile widget with an icon and name.

Implementation

Widget buildProfile(BuildContext context, String name) {
  return profileBuilder?.call(context, name) ??
      Column(
        children: [
          ClipRRect(
            borderRadius: BorderRadius.circular(16),
            child: Container(
                color: const Color(0xFFE9E9E9),
                width: 40,
                height: 40,
                child: const Icon(Icons.person)),
          ),
          const Gap(4),
          Text(
            name,
            style: const TextStyle(
                fontSize: 14,
                fontWeight: FontWeight.w400,
                letterSpacing: -0.02),
          ),
        ],
      );
}