fix(flutter): 缩小播放暂停按钮
This commit is contained in:
1 parent
33de925f65
commit
551da77e67
2 files changed
+5
-5
No files matched your search
@@ -6,7 +6,7 @@ import 'package:fruitshorts/core/theme/app_colors.dart';
|
||||
import 'package:fruitshorts/pages/player/widgets/player_center_toggle.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('should_use_one_shared_84px_translucent_toggle_style', (
|
||||
testWidgets('should_use_one_shared_68px_translucent_toggle_style', (
|
||||
tester,
|
||||
) async {
|
||||
await tester.pumpWidget(
|
||||
@@ -34,7 +34,7 @@ void main() {
|
||||
Key('test-center-toggle-a'),
|
||||
Key('player-play-toggle'),
|
||||
]) {
|
||||
expect(tester.getSize(find.byKey(key)), const Size(84, 84));
|
||||
expect(tester.getSize(find.byKey(key)), const Size(68, 68));
|
||||
// 圆形底改为半透明黑色,不再是完全透明或蓝色实底。
|
||||
final container = tester.widget<Container>(
|
||||
find.descendant(of: find.byKey(key), matching: find.byType(Container)),
|
||||
@@ -45,7 +45,7 @@ void main() {
|
||||
final icon = tester.widget<Icon>(
|
||||
find.descendant(of: find.byKey(key), matching: find.byType(Icon)),
|
||||
);
|
||||
expect(icon.size, 48);
|
||||
expect(icon.size, 36);
|
||||
expect(icon.color, AppColors.onPrimary);
|
||||
expect(icon.shadows, isNotNull);
|
||||
expect(icon.shadows, isNotEmpty);
|
||||
|
||||
Reference in new issue
Block a user