Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -47,7 +47,7 @@ class DynamicCardSkeleton extends StatelessWidget {
height: 11,
),
],
)
),
],
),
Container(
@@ -102,19 +102,20 @@ class DynamicCardSkeleton extends StatelessWidget {
),
style: TextButton.styleFrom(
padding: const EdgeInsets.fromLTRB(15, 0, 15, 0),
foregroundColor:
theme.colorScheme.outline.withValues(alpha: 0.2),
foregroundColor: theme.colorScheme.outline.withValues(
alpha: 0.2,
),
),
label: Text(
i == 0
? '转发'
: i == 1
? '评论'
: '点赞',
? '评论'
: '点赞',
),
)
),
],
)
),
],
),
),

View File

@@ -16,7 +16,11 @@ class _MediaPgcSkeletonState extends State<MediaPgcSkeleton> {
return Skeleton(
child: Padding(
padding: const EdgeInsets.fromLTRB(
StyleString.safeSpace, 7, StyleString.safeSpace, 7),
StyleString.safeSpace,
7,
StyleString.safeSpace,
7,
),
child: Row(
children: [
Container(
@@ -62,8 +66,9 @@ class _MediaPgcSkeletonState extends State<MediaPgcSkeleton> {
width: 90,
height: 35,
decoration: BoxDecoration(
borderRadius:
const BorderRadius.all(Radius.circular(20)),
borderRadius: const BorderRadius.all(
Radius.circular(20),
),
color: bgColor,
),
),

View File

@@ -74,14 +74,14 @@ class ShimmerState extends State<Shimmer> with SingleTickerProviderStateMixin {
}
LinearGradient get gradient => LinearGradient(
colors: widget.linearGradient.colors,
stops: widget.linearGradient.stops,
begin: widget.linearGradient.begin,
end: widget.linearGradient.end,
transform: _SlidingGradientTransform(
slidePercent: _shimmerController.value,
),
);
colors: widget.linearGradient.colors,
stops: widget.linearGradient.stops,
begin: widget.linearGradient.begin,
end: widget.linearGradient.end,
transform: _SlidingGradientTransform(
slidePercent: _shimmerController.value,
),
);
bool get isSized =>
(context.findRenderObject() as RenderBox?)?.hasSize ?? false;

View File

@@ -20,7 +20,8 @@ class SpaceOpusSkeleton extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
height: (0.68 + 0.82 * Utils.random.nextDouble()) *
height:
(0.68 + 0.82 * Utils.random.nextDouble()) *
constraints.maxWidth,
color: surface,
),
@@ -33,8 +34,11 @@ class SpaceOpusSkeleton extends StatelessWidget {
Container(
height: 10,
color: surface,
margin:
const EdgeInsets.only(left: 10, right: 10, bottom: 10),
margin: const EdgeInsets.only(
left: 10,
right: 10,
bottom: 10,
),
width: constraints.maxWidth,
),
],

View File

@@ -68,7 +68,7 @@ class VideoCardHSkeleton extends StatelessWidget {
height: 13,
),
],
)
),
],
),
),

View File

@@ -26,14 +26,18 @@ class VideoReplySkeleton extends StatelessWidget {
width: 80,
height: 13,
color: bgColor,
)
),
],
),
),
Container(
width: double.infinity,
margin:
const EdgeInsets.only(top: 4, left: 57, right: 6, bottom: 6),
margin: const EdgeInsets.only(
top: 4,
left: 57,
right: 6,
bottom: 6,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -71,9 +75,9 @@ class VideoReplySkeleton extends StatelessWidget {
margin: const EdgeInsets.only(bottom: 4),
color: bgColor,
),
const SizedBox(width: 8)
const SizedBox(width: 8),
],
)
),
],
),
),