TestSuperKeyboard constructor

TestSuperKeyboard(
  1. WidgetTester tester, {
  2. double fakeKeyboardHeight = 400.0,
  3. 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);
}