fix:多余的屏蔽
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
|
||||||
import 'package:shadcn_ui/shadcn_ui.dart';
|
import 'package:shadcn_ui/shadcn_ui.dart';
|
||||||
|
|
||||||
import '../../../common/domain/metal_type.dart';
|
import '../../../common/domain/metal_type.dart';
|
||||||
import '../../../common/domain/money.dart';
|
import '../../../common/domain/money.dart';
|
||||||
import '../../../common/router/app_router.dart';
|
import '../../../common/router/app_router.dart';
|
||||||
import '../../../common/widgets/prototype_ui.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/exchange_calculator_controller.dart';
|
||||||
import '../application/market_controller.dart';
|
import '../application/market_controller.dart';
|
||||||
import '../data/market_models.dart';
|
import '../data/market_models.dart';
|
||||||
import '../../profile/application/price_color_theme.dart';
|
|
||||||
import '../../profile/application/profile_settings_controller.dart';
|
|
||||||
|
|
||||||
class MarketPage extends HookConsumerWidget {
|
class MarketPage extends HookConsumerWidget {
|
||||||
const MarketPage({super.key});
|
const MarketPage({super.key});
|
||||||
@@ -235,8 +235,6 @@ class MarketPage extends HookConsumerWidget {
|
|||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
|
||||||
const PrototypePill(label: '多渠道参考', selected: true),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
return SafeArea(
|
return SafeArea(
|
||||||
top: false,
|
top: false,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
padding: const EdgeInsets.fromLTRB(0, 8, 0, 86),
|
padding: const EdgeInsets.fromLTRB(0, 8, 0, 20),
|
||||||
children: [
|
children: [
|
||||||
PrototypeFrame(
|
PrototypeFrame(
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -169,7 +169,7 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
ref
|
ref
|
||||||
.read(profileSettingsControllerProvider.notifier)
|
.read(profileSettingsControllerProvider.notifier)
|
||||||
.setPriceColorMode(nextMode);
|
.setPriceColorMode(nextMode);
|
||||||
_toast(context, '已切换为「${nextMode.label}」');
|
toastInfo(msg: '已切换为「${nextMode.label}」');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const PrototypeDivider(margin: EdgeInsets.zero),
|
const PrototypeDivider(margin: EdgeInsets.zero),
|
||||||
@@ -177,7 +177,7 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
icon: Icons.currency_yen_outlined,
|
icon: Icons.currency_yen_outlined,
|
||||||
title: '显示币种',
|
title: '显示币种',
|
||||||
trailing: '¥ CNY',
|
trailing: '¥ CNY',
|
||||||
onTap: () => _toast(context, '当前仅支持 ¥ CNY'),
|
onTap: () => toastInfo(msg: '当前仅支持 ¥ CNY'),
|
||||||
),
|
),
|
||||||
const PrototypeDivider(margin: EdgeInsets.zero),
|
const PrototypeDivider(margin: EdgeInsets.zero),
|
||||||
SettingRow(
|
SettingRow(
|
||||||
@@ -219,13 +219,13 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
trailing: null,
|
trailing: null,
|
||||||
onTap: () => _showDisclaimer(context),
|
onTap: () => _showDisclaimer(context),
|
||||||
),
|
),
|
||||||
const PrototypeDivider(margin: EdgeInsets.zero),
|
// const PrototypeDivider(margin: EdgeInsets.zero),
|
||||||
SettingRow(
|
// SettingRow(
|
||||||
icon: Icons.feedback_outlined,
|
// icon: Icons.feedback_outlined,
|
||||||
title: '意见反馈 · 关于金值',
|
// title: '意见反馈 · 关于金值',
|
||||||
trailing: null,
|
// trailing: null,
|
||||||
onTap: () => _showAbout(context),
|
// onTap: () => _showAbout(context),
|
||||||
),
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -297,10 +297,6 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _toast(BuildContext context, String message) {
|
|
||||||
toastInfo(msg: message);
|
|
||||||
}
|
|
||||||
|
|
||||||
class _MenuRow extends StatelessWidget {
|
class _MenuRow extends StatelessWidget {
|
||||||
const _MenuRow({
|
const _MenuRow({
|
||||||
required this.title,
|
required this.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user