优化调整“我的”界面

This commit is contained in:
DelLevin-Home
2026-08-09 22:42:55 +08:00
parent 9cc492782e
commit 65231e204f
13 changed files with 682 additions and 292 deletions

View File

@@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
/// 列表顶部渐变遮罩带:从 surface 色渐变到透明,
/// 让滚动内容从状态栏下方淡入淡出。
class TopFadeScrim extends StatelessWidget {
const TopFadeScrim({super.key, this.height = 12});
final double height;
@override
Widget build(BuildContext context) {
final colors = Theme.of(context).colorScheme;
return IgnorePointer(
child: Align(
alignment: Alignment.topCenter,
child: Container(
height: height,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
colors.surface,
colors.surface.withValues(alpha: 0),
],
),
),
),
),
);
}
}