profileHeader static method
Profile header skeleton
Implementation
static Widget profileHeader() {
return Column(
children: [
// Cover image
const SkeletonLoader(
height: 200,
borderRadius: 0,
),
const SizedBox(height: 16),
// Avatar
Transform.translate(
offset: const Offset(0, -60),
child: Column(
children: [
const SkeletonLoader.circle(radius: 50),
const SizedBox(height: 12),
// Name
const SkeletonLoader(width: 150, height: 20, borderRadius: 8),
const SizedBox(height: 8),
// Bio
SkeletonLoader.text(width: 200),
SkeletonLoader.text(width: 160),
],
),
),
],
);
}