style: 增强我的页渐变与图标配色

This commit is contained in:
Zhou Weidong committed 2026-10-22 21:38:49 +08:00
1 parent 647f6afd77
commit a81bec4d47
6 files changed
+116 -49

No files matched your search

+24 -34
View File
@@ -80,7 +80,6 @@ class _MyPageState extends State<MyPage> {
}
Widget _page(BuildContext context) {
final l10n = AppLocalizations.of(context)!;
final content = DecoratedBox(
key: const Key('mine-page-surface'),
decoration: const BoxDecoration(
@@ -92,18 +91,32 @@ class _MyPageState extends State<MyPage> {
AppColors.mineGradientMiddle,
AppColors.mineGradientBottom,
],
stops: [0, 0.48, 1],
stops: [0, 0.4, 0.75],
),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
_topBar(l10n),
Expanded(child: _body(context)),
if (!embedded) _bottomNav(),
],
),
child: Stack(
fit: StackFit.expand,
children: [
const DecoratedBox(
key: Key('mine-page-glow'),
decoration: BoxDecoration(
gradient: RadialGradient(
center: Alignment(0, -0.95),
radius: 0.9,
colors: [AppColors.mineGradientGlow, AppColors.transparent],
),
),
),
SafeArea(
bottom: false,
child: Column(
children: [
Expanded(child: _body(context)),
if (!embedded) _bottomNav(),
],
),
),
],
),
);
return AnnotatedRegion<SystemUiOverlayStyle>(
@@ -117,29 +130,6 @@ class _MyPageState extends State<MyPage> {
);
}
Widget _topBar(AppLocalizations l10n) {
return SizedBox(
height: AppDimens.contentHeaderHeight,
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: AppDimens.pageHorizontal,
),
child: Align(
alignment: Alignment.centerLeft,
child: Text(
l10n.myTab,
style: const TextStyle(
fontFamily: 'Outfit',
color: AppColors.textPrimary,
fontSize: AppDimens.minePageTitle,
fontWeight: FontWeight.w700,
),
),
),
),
);
}
Widget _body(BuildContext context) {
return ListView(
key: const Key('mine-page-scroll'),