mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-24 19:20:15 +08:00
46 lines
995 B
Dart
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,
|
|
),
|
|
);
|
|
}
|
|
}
|