2026-04-03 16:56:47 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
2026-04-08 17:23:02 +08:00
|
|
|
import '../../../features/divination/data/models/divination_params.dart';
|
|
|
|
|
import '../../../l10n/app_localizations.dart';
|
2026-04-03 16:56:47 +08:00
|
|
|
import '../../theme/design_tokens.dart';
|
|
|
|
|
import 'divination_terms.dart';
|
|
|
|
|
|
|
|
|
|
class YaoLegend extends StatelessWidget {
|
|
|
|
|
const YaoLegend({super.key});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
2026-04-08 17:23:02 +08:00
|
|
|
final l10n = AppLocalizations.of(context)!;
|
2026-04-03 16:56:47 +08:00
|
|
|
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(
|
2026-04-08 17:23:02 +08:00
|
|
|
'\u2014 ${DivinationTerms.yinYangLabel(l10n, true)}',
|
2026-04-03 16:56:47 +08:00
|
|
|
style: style?.copyWith(color: mutedTextColor),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
2026-04-08 17:23:02 +08:00
|
|
|
'-- ${DivinationTerms.yinYangLabel(l10n, false)}',
|
2026-04-03 16:56:47 +08:00
|
|
|
style: style?.copyWith(color: mutedTextColor),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
2026-04-08 17:23:02 +08:00
|
|
|
'${DivinationTerms.changeMarkOldYang} ${DivinationTerms.yaoTypeLabel(l10n, YaoType.oldYang)}${l10n.yaoMovingSuffix}',
|
2026-04-03 16:56:47 +08:00
|
|
|
style: style?.copyWith(color: mutedTextColor),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
2026-04-08 17:23:02 +08:00
|
|
|
'${DivinationTerms.changeMarkOldYin} ${DivinationTerms.yaoTypeLabel(l10n, YaoType.oldYin)}${l10n.yaoMovingSuffix}',
|
2026-04-03 16:56:47 +08:00
|
|
|
style: style?.copyWith(color: mutedTextColor),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|