36 lines
1.2 KiB
Dart
36 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../../../core/theme/app_theme.dart';
|
|
import '../../../core/widgets/glass_container.dart';
|
|
|
|
/// Trade Performance Metrics header evaluating win rates, CRV, and potential.
|
|
class TradePerformanceHeader extends StatelessWidget {
|
|
const TradePerformanceHeader({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GlassContainer(
|
|
padding: const EdgeInsets.all(16),
|
|
margin: const EdgeInsets.only(bottom: 20),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
children: [
|
|
_metricColumn('Trefferquote (Win Rate)', '78.4%', AppTheme.primaryEmerald),
|
|
_metricColumn('Risiko-Ertrag (CRV)', '1 : 2.85', AppTheme.accentCyan),
|
|
_metricColumn('Ø Potenzial', '+14.2%', AppTheme.primaryEmerald),
|
|
_metricColumn('Signale 30T', '42 Active', AppTheme.textPrimary),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
|
|
Widget _metricColumn(String label, String value, Color valueColor) {
|
|
return Column(
|
|
children: [
|
|
Text(label, style: TextStyle(color: AppTheme.textMuted, fontSize: 11)),
|
|
const SizedBox(height: 4),
|
|
Text(value, style: TextStyle(color: valueColor, fontWeight: FontWeight.bold, fontSize: 16)),
|
|
],
|
|
);
|
|
}
|
|
}
|