flutter_keyboard_scroll 1.0.21 copy "flutter_keyboard_scroll: ^1.0.21" to clipboard
flutter_keyboard_scroll: ^1.0.21 copied to clipboard

A plugin for keyboard show listen. and scroll the widget to the top of the keyboard.

flutter_keyboard_scroll #

A plugin for keyboard show listen.

Getting Started #

KeyboardObserver( hideListener: (double former, double newer, time) { FocusScope.of(context).requestFocus(FocusNode()); }, child: Column( children: [ _buildScreenShow(), _buildTextField(), ], ), );

///keyboard scroll controller

final KeyboardScrollController _keyboardScrollController = KeyboardScrollController();

///add wrapper

_keyboardScrollController.addTextFieldWrapper( TextFieldWrapper.fromKey(focusNode: _focusNode, focusKey: _globalKey), );

///build widget

KeyboardScroll( controller: _keyboardScrollController, child: ListView( padding: EdgeInsets.fromLTRB( 0, 0, 0, MediaQuery.of(context).padding.bottom, ), children: [ ... ), )

1
likes
150
points
404
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin for keyboard show listen. and scroll the widget to the top of the keyboard.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_keyboard_scroll

Packages that implement flutter_keyboard_scroll