Skip to content

Commit 664e60c

Browse files
authored
Fix: Home Widget (#496)
* 更新 page.dart * 更新 page.dart * 更新 page.dart
1 parent cc56ec6 commit 664e60c

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

lib/app/home/page.dart

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,9 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
799799
color: color.withValues(alpha: 0.15),
800800
borderRadius: BorderRadius.circular(8),
801801
border: Border.all(
802-
color: Colors.white.withValues(alpha: 0.25),
802+
color: Theme.of(context).brightness == Brightness.dark
803+
? Colors.white.withValues(alpha: 0.25)
804+
: const Color.fromARGB(255, 0, 0, 0).withValues(alpha: 0.25),
803805
width: 0.5,
804806
),
805807
),
@@ -809,14 +811,19 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
809811
Text(
810812
label,
811813
style: context.texts.labelSmall?.copyWith(
812-
color: Colors.white.withValues(alpha: 0.8),
814+
color: Theme.of(context).brightness == Brightness.dark
815+
? Colors.white
816+
: const Color.fromARGB(255, 90, 90, 90),
817+
fontWeight: FontWeight.w700,
813818
fontSize: 8,
814819
),
815820
),
816821
Text(
817822
value,
818823
style: context.texts.bodySmall?.copyWith(
819-
color: Colors.white,
824+
color: Theme.of(context).brightness == Brightness.dark
825+
? Colors.white
826+
: const Color.fromARGB(255, 60, 60, 60),
820827
fontWeight: FontWeight.w600,
821828
fontSize: 11,
822829
),

0 commit comments

Comments
 (0)