Skip to content

Commit 2c9aa84

Browse files
authored
Fix master CI: PlayableActionSheet test overflows on stricter Flutter (#177)
1 parent 60f1fe3 commit 2c9aa84

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/ui/screens/playable_action_sheet_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'package:app/providers/download_provider.dart';
55
import 'package:app/providers/favorite_provider.dart';
66
import 'package:app/ui/screens/playable_action_sheet.dart';
77
import 'package:audio_service/audio_service.dart';
8+
import 'package:flutter/material.dart';
89
import 'package:flutter_test/flutter_test.dart';
910
import 'package:mockito/annotations.dart';
1011
import 'package:mockito/mockito.dart';
@@ -55,6 +56,10 @@ void main() {
5556
],
5657
child: PlayableActionSheet(playable: song),
5758
),
59+
// The sheet is normally shown via showModalBottomSheet with
60+
// isScrollControlled, which lets it overflow / scroll. When mounted
61+
// bare, give it enough vertical room to lay out without overflow.
62+
surfaceSize: const Size(414, 1024),
5863
);
5964
}
6065

0 commit comments

Comments
 (0)