fix(player): 更多面板文字减重并缩小标签

This commit is contained in:
Zhou Weidong committed 2026-10-21 10:43:36 +08:00
1 parent 62f87040d6
commit 622dc2f9e8
3 files changed
+14 -12

No files matched your search

@@ -13,7 +13,7 @@ const double _groupRadius = 16;
const double _rowHorizontalPadding = 14;
const double _rowIconSize = 22;
const double _rowIconGap = 14;
const double _rowLabelSize = 16;
const double _rowLabelSize = 15;
const double _rowChevronGap = 10;
const double _segmentTrackHeight = 34;
const double _segmentHeight = 26;
@@ -211,7 +211,7 @@ class _PlayerMoreSheetState extends State<PlayerMoreSheet> {
style: const TextStyle(
color: AppColors.onSurface,
fontSize: _rowLabelSize,
fontWeight: FontWeight.w600,
fontWeight: FontWeight.w500,
),
),
),
@@ -294,7 +294,7 @@ class _PlayerMoreSheetState extends State<PlayerMoreSheet> {
style: const TextStyle(
color: AppColors.onSurface,
fontSize: _rowLabelSize,
fontWeight: FontWeight.w600,
fontWeight: FontWeight.w500,
),
),
),
@@ -374,8 +374,8 @@ class _SegmentButton extends StatelessWidget {
maxLines: 1,
style: TextStyle(
color: foreground,
fontSize: 14,
fontWeight: selected ? FontWeight.w700 : FontWeight.w500,
fontSize: 13,
fontWeight: selected ? FontWeight.w600 : FontWeight.w400,
),
),
),
+3 -3
View File
@@ -894,7 +894,7 @@ void main() {
)
.style
?.fontSize,
14,
13,
);
await tester.ensureVisible(find.byKey(const Key('player-more-speed-1.5')));
await tester.pumpAndSettle();
@@ -910,7 +910,7 @@ void main() {
)
.style
?.fontWeight,
FontWeight.w700,
FontWeight.w600,
);
expect(
tester
@@ -922,7 +922,7 @@ void main() {
)
.style
?.fontWeight,
FontWeight.w500,
FontWeight.w400,
);
});
+6 -4
View File
@@ -63,8 +63,8 @@ void main() {
)
.first,
);
expect(speedLabel.style?.fontSize, 16);
expect(speedLabel.style?.fontWeight, FontWeight.w600);
expect(speedLabel.style?.fontSize, 15);
expect(speedLabel.style?.fontWeight, FontWeight.w500);
expect(tester.widget<Icon>(find.byIcon(Icons.speed_outlined)).size, 22);
expect(tester.widget<Icon>(find.byIcon(Icons.fullscreen)).size, 22);
@@ -86,7 +86,8 @@ void main() {
),
);
expect(selectedText.style?.color, AppColors.onSurface);
expect(selectedText.style?.fontWeight, FontWeight.w700);
expect(selectedText.style?.fontSize, 13);
expect(selectedText.style?.fontWeight, FontWeight.w600);
final unselected = tester.widget<Container>(
find
@@ -105,7 +106,8 @@ void main() {
),
);
expect(unselectedText.style?.color, AppColors.muted);
expect(unselectedText.style?.fontWeight, FontWeight.w500);
expect(unselectedText.style?.fontSize, 13);
expect(unselectedText.style?.fontWeight, FontWeight.w400);
final disabledText = tester.widget<Text>(
find.descendant(