Files
PiliPlus/lib/common/skeleton/whisper_item.dart
2026-06-20 20:54:55 +08:00

46 lines
995 B
Dart

import 'package:flutter/material.dart';
const _ = _WhisperItemSkeleton();
const whisperSkeleton = SliverList(
delegate: SliverChildListDelegate.fixed(
[_, _, _, _, _, _, _, _, _, _],
),
);
class _WhisperItemSkeleton extends StatelessWidget {
const _WhisperItemSkeleton();
@override
Widget build(BuildContext context) {
final color = Theme.of(context).colorScheme.onInverseSurface;
return ListTile(
leading: Container(
width: 45,
height: 45,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: color,
),
),
title: UnconstrainedBox(
alignment: Alignment.centerLeft,
child: Container(
width: 100,
height: 11,
color: color,
),
),
subtitle: Container(
color: color,
width: 125,
height: 11,
),
trailing: Container(
color: color,
width: 50,
height: 11,
),
);
}
}