fix(asset): 隐藏总资产卡片的每秒增长显示

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-20 04:16:42 -08:00
parent 1aa655f243
commit 14d29b62ef
1 changed files with 28 additions and 28 deletions

View File

@ -375,34 +375,34 @@ class _AssetPageState extends ConsumerState<AssetPage> {
// color: Color(0xFF9CA3AF),
// ),
// ),
const SizedBox(height: 12),
//
Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
decoration: BoxDecoration(
color: isDark ? _green.withOpacity(0.15) : _feta,
borderRadius: BorderRadius.circular(8),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(Icons.bolt, size: 14, color: _green),
const SizedBox(width: 6),
DataText(
data: asset != null
? '+${formatDecimal(growthPerSecond.toString(), 8)}/秒'
: null,
isLoading: isLoading,
placeholder: '+--/秒',
style: const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w500,
color: _green,
),
),
],
),
),
// -
// const SizedBox(height: 12),
// Container(
// padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
// decoration: BoxDecoration(
// color: isDark ? _green.withOpacity(0.15) : _feta,
// borderRadius: BorderRadius.circular(8),
// ),
// child: Row(
// mainAxisSize: MainAxisSize.min,
// children: [
// const Icon(Icons.bolt, size: 14, color: _green),
// const SizedBox(width: 6),
// DataText(
// data: asset != null
// ? '+${formatDecimal(growthPerSecond.toString(), 8)}/秒'
// : null,
// isLoading: isLoading,
// placeholder: '+--/秒',
// style: const TextStyle(
// fontSize: 12,
// fontWeight: FontWeight.w500,
// color: _green,
// ),
// ),
// ],
// ),
// ),
],
),
),