TestSuperKeyboard constructor
TestSuperKeyboard(
- WidgetTester tester, {
- double fakeKeyboardHeight = 400.0,
- Duration keyboardAnimationTime = const Duration(milliseconds: 600),
Implementation
TestSuperKeyboard(
this.tester, {
this.fakeKeyboardHeight = 400.0,
Duration keyboardAnimationTime = const Duration(milliseconds: 600),
}) {
_interceptPlatformChannel();
_keyboardHeightController = AnimationController(
duration: keyboardAnimationTime,
vsync: tester,
)
..addListener(() {
_keyboardHeight.value = _keyboardHeightController.value * fakeKeyboardHeight;
})
..addStatusListener(_onKeyboardAnimationStatusChange);
}