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

40 lines
927 B
Dart

import 'package:flutter/material.dart';
const _ = _MsgFeedTopSkeleton();
const sysFeedSkeleton = SliverList(delegate: sysFeedDelegate);
const sysFeedDelegate = SliverChildListDelegate.fixed(
[_, _, _, _, _, _, _, _, _, _],
);
class _MsgFeedTopSkeleton extends StatelessWidget {
const _MsgFeedTopSkeleton();
@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,
),
);
}
}