From 088bb61411b4af7fbefd3ab7bb6e78f9174948ad Mon Sep 17 00:00:00 2001 From: jingyun <> Date: Tue, 23 Jun 2026 10:42:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E5=B1=8F=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../market/presentation/market_page.dart | 8 +++---- .../profile/presentation/profile_page.dart | 24 ++++++++----------- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/lib/features/market/presentation/market_page.dart b/lib/features/market/presentation/market_page.dart index 944927e..36294c9 100644 --- a/lib/features/market/presentation/market_page.dart +++ b/lib/features/market/presentation/market_page.dart @@ -1,18 +1,18 @@ import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:go_router/go_router.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:shadcn_ui/shadcn_ui.dart'; import '../../../common/domain/metal_type.dart'; import '../../../common/domain/money.dart'; import '../../../common/router/app_router.dart'; import '../../../common/widgets/prototype_ui.dart'; +import '../../profile/application/price_color_theme.dart'; +import '../../profile/application/profile_settings_controller.dart'; import '../application/exchange_calculator_controller.dart'; import '../application/market_controller.dart'; import '../data/market_models.dart'; -import '../../profile/application/price_color_theme.dart'; -import '../../profile/application/profile_settings_controller.dart'; class MarketPage extends HookConsumerWidget { const MarketPage({super.key}); @@ -235,8 +235,6 @@ class MarketPage extends HookConsumerWidget { fontWeight: FontWeight.w600, ), ), - const Spacer(), - const PrototypePill(label: '多渠道参考', selected: true), ], ), const SizedBox(height: 8), diff --git a/lib/features/profile/presentation/profile_page.dart b/lib/features/profile/presentation/profile_page.dart index c51a8c9..484d788 100644 --- a/lib/features/profile/presentation/profile_page.dart +++ b/lib/features/profile/presentation/profile_page.dart @@ -29,7 +29,7 @@ class ProfilePage extends ConsumerWidget { return SafeArea( top: false, child: ListView( - padding: const EdgeInsets.fromLTRB(0, 8, 0, 86), + padding: const EdgeInsets.fromLTRB(0, 8, 0, 20), children: [ PrototypeFrame( child: Column( @@ -169,7 +169,7 @@ class ProfilePage extends ConsumerWidget { ref .read(profileSettingsControllerProvider.notifier) .setPriceColorMode(nextMode); - _toast(context, '已切换为「${nextMode.label}」'); + toastInfo(msg: '已切换为「${nextMode.label}」'); }, ), const PrototypeDivider(margin: EdgeInsets.zero), @@ -177,7 +177,7 @@ class ProfilePage extends ConsumerWidget { icon: Icons.currency_yen_outlined, title: '显示币种', trailing: '¥ CNY', - onTap: () => _toast(context, '当前仅支持 ¥ CNY'), + onTap: () => toastInfo(msg: '当前仅支持 ¥ CNY'), ), const PrototypeDivider(margin: EdgeInsets.zero), SettingRow( @@ -219,13 +219,13 @@ class ProfilePage extends ConsumerWidget { trailing: null, onTap: () => _showDisclaimer(context), ), - const PrototypeDivider(margin: EdgeInsets.zero), - SettingRow( - icon: Icons.feedback_outlined, - title: '意见反馈 · 关于金值', - trailing: null, - onTap: () => _showAbout(context), - ), + // const PrototypeDivider(margin: EdgeInsets.zero), + // SettingRow( + // icon: Icons.feedback_outlined, + // title: '意见反馈 · 关于金值', + // trailing: null, + // onTap: () => _showAbout(context), + // ), ], ), ), @@ -297,10 +297,6 @@ class ProfilePage extends ConsumerWidget { } } -void _toast(BuildContext context, String message) { - toastInfo(msg: message); -} - class _MenuRow extends StatelessWidget { const _MenuRow({ required this.title,