Skip to content

Commit 821d738

Browse files
committed
🔖 (0.9.0)
1 parent bf2aefe commit 821d738

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.0
2+
3+
* fix: Handle viewPadding when keyboard opens.
4+
15
## 0.8.0
26

37
* feat: Add new devices iPhone 16 pro and Pixel 9.

lib/src/adaptive/window_configuration.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ 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;
2627
}
2728

2829
/// Configure the tester window to represent a closed keyboard on the given device variant.
2930
void configureClosedKeyboardWindow(WindowConfigData windowConfig) {
3031
view.resetViewInsets();
3132
view.padding = windowConfig.padding;
33+
view.viewPadding = windowConfig.padding;
3234
}
3335
}

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.8.0
4+
version: 0.9.0
55
homepage: https://github.com/bamlab/adaptive_test
66
repository: https://github.com/bamlab/adaptive_test
77

0 commit comments

Comments
 (0)