fix;设置和深浅色

This commit is contained in:
jingyun
2026-06-05 17:54:46 +08:00
parent 33d04a5545
commit af865b13fb
24 changed files with 742 additions and 290 deletions
+7 -5
View File
@@ -1,9 +1,9 @@
import 'package:flutter/material.dart';
import 'package:shadcn_ui/shadcn_ui.dart';
import '../../data/models/models.dart';
import '../../theme/app_icons.dart';
import '../../theme/yanting_text.dart';
import '../../theme/yanting_tokens.dart';
import '../../theme/wise_tokens.dart';
import '../../widgets/app_buttons.dart';
import '../../widgets/app_card.dart';
@@ -27,6 +27,7 @@ class ReportCardWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final colors = ShadTheme.of(context).colorScheme;
final child = Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -66,7 +67,7 @@ class ReportCardWidget extends StatelessWidget {
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: YantingText.body.copyWith(
color: YantingColors.mutedForeground,
color: colors.mutedForeground,
fontSize: hero ? null : 14,
),
),
@@ -84,7 +85,7 @@ class ReportCardWidget extends StatelessWidget {
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: YantingText.meta.copyWith(
color: YantingColors.foreground,
color: colors.foreground,
fontWeight: FontWeight.w500,
),
),
@@ -122,11 +123,12 @@ class _MetaDot extends StatelessWidget {
@override
Widget build(BuildContext context) {
final colors = ShadTheme.of(context).colorScheme;
return Container(
width: 3,
height: 3,
decoration: const BoxDecoration(
color: YantingColors.mutedForeground,
decoration: BoxDecoration(
color: colors.mutedForeground,
shape: BoxShape.circle,
),
);