feat: 实现起卦、设置与积分系统

This commit is contained in:
qzl
2026-04-03 16:56:47 +08:00
parent 31594558eb
commit f245eec5f6
170 changed files with 20728 additions and 328 deletions
@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
import '../../theme/design_tokens.dart';
import 'divination_terms.dart';
class YaoLegend extends StatelessWidget {
const YaoLegend({super.key});
@override
Widget build(BuildContext 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.yinYang[true]}',
style: style?.copyWith(color: mutedTextColor),
),
Text(
'-- ${DivinationTerms.yinYang[false]}',
style: style?.copyWith(color: mutedTextColor),
),
Text(
'${DivinationTerms.changeMarkOldYang} ${DivinationTerms.yaoTypeLabels[YaoTypeLabel.oldYang]}(变)',
style: style?.copyWith(color: mutedTextColor),
),
Text(
'${DivinationTerms.changeMarkOldYin} ${DivinationTerms.yaoTypeLabels[YaoTypeLabel.oldYin]}(变)',
style: style?.copyWith(color: mutedTextColor),
),
],
);
}
}