fix(android): 键盘弹出不再压缩整页
This commit is contained in:
1 parent
5160ab437d
commit
dbeb9883a5
3 files changed
+4
-2
No files matched your search
@@ -389,6 +389,7 @@ void main() {
|
||||
final first = find.byKey(const Key('comment-item-10'));
|
||||
final sheetTop = tester.getTopLeft(sheet).dy;
|
||||
final inputTop = tester.getTopLeft(input).dy;
|
||||
final inputBottom = tester.getBottomLeft(input).dy;
|
||||
final firstTop = tester.getTopLeft(first).dy;
|
||||
|
||||
tester.view.viewInsets = const FakeViewPadding(bottom: 180);
|
||||
@@ -398,6 +399,7 @@ void main() {
|
||||
expect(tester.getTopLeft(sheet).dy, closeTo(sheetTop, 0.1));
|
||||
expect(tester.getTopLeft(first).dy, closeTo(firstTop, 0.1));
|
||||
expect(tester.getTopLeft(input).dy, lessThan(inputTop - 100));
|
||||
expect(tester.getBottomLeft(input).dy, closeTo(inputBottom - 180, 0.1));
|
||||
});
|
||||
|
||||
testWidgets('should_hide_comment_like_controls', (tester) async {
|
||||
|
||||
Reference in new issue
Block a user