Files
eryao/apps/lib/shared/widgets/divination/yao_legend.dart
qzl e80a82bef4 docs: 更新协议文档,删除废弃计划文档
- 更新 http-error-codes, user-points-chat-data-protocol
- 更新 divination-run-protocol, profile-protocol
- 删除废弃的后端和前端设计计划文档
2026-04-08 17:23:02 +08:00

42 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import '../../../features/divination/data/models/divination_params.dart';
import '../../../l10n/app_localizations.dart';
import '../../theme/design_tokens.dart';
import 'divination_terms.dart';
class YaoLegend extends StatelessWidget {
const YaoLegend({super.key});
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context)!;
final style = Theme.of(context).textTheme.bodySmall;
final mutedTextColor = Theme.of(
context,
).colorScheme.onSurface.withValues(alpha: 0.8);
return Wrap(
spacing: AppSpacing.md,
runSpacing: AppSpacing.xs,
children: [
Text(
'\u2014 ${DivinationTerms.yinYangLabel(l10n, true)}',
style: style?.copyWith(color: mutedTextColor),
),
Text(
'-- ${DivinationTerms.yinYangLabel(l10n, false)}',
style: style?.copyWith(color: mutedTextColor),
),
Text(
'${DivinationTerms.changeMarkOldYang} ${DivinationTerms.yaoTypeLabel(l10n, YaoType.oldYang)}${l10n.yaoMovingSuffix}',
style: style?.copyWith(color: mutedTextColor),
),
Text(
'${DivinationTerms.changeMarkOldYin} ${DivinationTerms.yaoTypeLabel(l10n, YaoType.oldYin)}${l10n.yaoMovingSuffix}',
style: style?.copyWith(color: mutedTextColor),
),
],
);
}
}