mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
68 lines
2.0 KiB
Dart
68 lines
2.0 KiB
Dart
import 'package:PiliPlus/common/constants.dart';
|
|
import 'package:PiliPlus/common/skeleton/skeleton.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class FavPgcItemSkeleton extends StatelessWidget {
|
|
const FavPgcItemSkeleton({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final color = Theme.of(context).colorScheme.onInverseSurface;
|
|
return Skeleton(
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(
|
|
horizontal: StyleString.safeSpace,
|
|
vertical: 5,
|
|
),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
AspectRatio(
|
|
aspectRatio: 3 / 4,
|
|
child: LayoutBuilder(
|
|
builder: (context, boxConstraints) {
|
|
return Container(
|
|
decoration: BoxDecoration(
|
|
color: color,
|
|
borderRadius: const BorderRadius.all(Radius.circular(4)),
|
|
),
|
|
width: boxConstraints.maxWidth,
|
|
height: boxConstraints.maxHeight,
|
|
);
|
|
},
|
|
),
|
|
),
|
|
const SizedBox(width: 10),
|
|
Expanded(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Container(
|
|
width: 175,
|
|
height: 12,
|
|
color: color,
|
|
),
|
|
const SizedBox(height: 10),
|
|
Container(
|
|
width: 55,
|
|
height: 11,
|
|
color: color,
|
|
),
|
|
const SizedBox(height: 5),
|
|
Container(
|
|
width: 35,
|
|
height: 11,
|
|
color: color,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|