Skip to content

Commit d5a4e89

Browse files
authored
Merge pull request #40 from bamlab/fix/opening-keyboard-should-not-remove-top-padding
fix: viewInsets should not be updated on keyboard open/close
2 parents 8edfdb3 + a7e13c5 commit d5a4e89

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.10.1
2+
3+
* fix: revert viewPadding update when keyboard opens/closes.
4+
15
## 0.10.0
26

37
* feat: Add support for 2-button and 3-button navigation for Android devices.

lib/src/adaptive/window_configuration_tester.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ extension WidgetTesterWithConfigurableWindow on WidgetTester {
2323
void configureOpenedKeyboardWindow(WindowConfigData windowConfig) {
2424
view.viewInsets = windowConfig.viewInsets;
2525
view.padding = windowConfig.padding.copyWith(bottom: 0);
26-
view.viewPadding = windowConfig.viewInsets;
2726
}
2827

2928
/// Configure the tester window to represent a closed keyboard on the given device variant.
3029
void configureClosedKeyboardWindow(WindowConfigData windowConfig) {
3130
view.resetViewInsets();
3231
view.padding = windowConfig.padding;
33-
view.viewPadding = windowConfig.padding;
3432
}
3533
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: adaptive_test
22
description: >-
33
A Flutter package to generate adaptive golden files during widget tests.
4-
version: 0.10.0
4+
version: 0.10.1
55
homepage: https://github.com/bamlab/adaptive_test
66
repository: https://github.com/bamlab/adaptive_test
77

0 commit comments

Comments
 (0)