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)),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user