fix:多余的屏蔽
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user