merge: 合并 K81-A 更多面板文字减重

This commit is contained in:
Zhou Weidong committed 2026-10-21 10:43:51 +08:00
commit e6a31a60df
3 files changed
+14 -12

No files matched your search

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