feat(ui): 优化转账页面百分比按钮布局和菜单样式
- 调整转账页面百分比按钮布局,将Expanded组件移到外层,使按钮宽度均匀分布 - 移除首页资产卡片充值按钮的加号图标,简化UI - 优化个人中心菜单行样式,使用统一的surfaceCardHigh颜色并调整图标颜色 - 新增.claude/settings.local.json配置文件,添加Flutter版本检查和Python脚本权限 - 扩展.claude/settings.json中的Flutter分析工具路径配置 - 生成Flutter构建缓存文件,支持项目构建过程
This commit is contained in:
@@ -411,9 +411,11 @@ class _TransferPageState extends State<TransferPage> {
|
||||
final index = entry.key;
|
||||
final percent = entry.value;
|
||||
final label = '${(percent * 100).toInt()}%';
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(left: index > 0 ? AppSpacing.sm : 0),
|
||||
child: _buildPercentButton(label, percent),
|
||||
return Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(left: index > 0 ? AppSpacing.sm : 0),
|
||||
child: _buildPercentButton(label, percent),
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
@@ -424,18 +426,16 @@ class _TransferPageState extends State<TransferPage> {
|
||||
Widget _buildPercentButton(String label, double percent) {
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
|
||||
return Expanded(
|
||||
child: GestureDetector(
|
||||
onTap: () => _setQuickAmount(percent),
|
||||
child: Container(
|
||||
height: 36,
|
||||
decoration: BoxDecoration(
|
||||
color: colorScheme.surfaceContainerHigh,
|
||||
borderRadius: BorderRadius.circular(AppRadius.sm),
|
||||
),
|
||||
child: Center(
|
||||
child: Text(label, style: AppTextStyles.headlineSmall(context)),
|
||||
),
|
||||
return GestureDetector(
|
||||
onTap: () => _setQuickAmount(percent),
|
||||
child: Container(
|
||||
height: 36,
|
||||
decoration: BoxDecoration(
|
||||
color: colorScheme.surfaceContainerHigh,
|
||||
borderRadius: BorderRadius.circular(AppRadius.sm),
|
||||
),
|
||||
child: Center(
|
||||
child: Text(label, style: AppTextStyles.headlineSmall(context)),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -268,7 +268,6 @@ class _AssetCardState extends State<_AssetCard> {
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(Icons.add, size: 13, color: context.colors.onPrimary),
|
||||
SizedBox(width: 4),
|
||||
Text(
|
||||
'充值',
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:lucide_icons_flutter/lucide_icons.dart';
|
||||
import '../../../../core/theme/app_spacing.dart';
|
||||
import '../../../../core/theme/app_theme.dart';
|
||||
import '../../../../core/theme/app_theme_extension.dart';
|
||||
|
||||
/// 单行菜单项:图标 + 标题 + 尾部组件 (chevron)
|
||||
///
|
||||
@@ -35,9 +36,7 @@ class MenuRow extends StatelessWidget {
|
||||
width: 36,
|
||||
height: 36,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).brightness == Brightness.dark
|
||||
? Theme.of(context).colorScheme.surfaceContainerHigh
|
||||
: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
color: context.appColors.surfaceCardHigh,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Center(
|
||||
@@ -57,7 +56,7 @@ class MenuRow extends StatelessWidget {
|
||||
Icon(
|
||||
LucideIcons.chevronRight,
|
||||
size: 16,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
color: context.colors.onSurfaceVariant,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user