keyboard_overlay

Last updated:

0 purchases

keyboard_overlay Image
keyboard_overlay Images
Add to Cart

Description:

keyboard overlay

keyboard_overlay #
A simple way to show overlay widgets when keyboard rises, without changing widget three from your current project. #
It shows a custom widget when TextFields get focused, and everything is disposed automatically on StatefulWidget dispose.

Add dependency
dependencies:
keyboard_overlay: ^1.0.0
copied to clipboard
//use mixin on State<StatefulWidget>: HandleFocusNodesOverlayMixin
copied to clipboard
Init FocusNodeOverlay #
@override
void initState() {
_nodePassword = GetFocusNodeOverlay(
child: SpecialDismissable(
onOkButton: () => print(_nodePassword.controller.text),
title: 'SPECIAL',
),
controller: TextEditingController()
)
}
copied to clipboard
Use it on TextFields #
TextFormField(
focusNode: _nodePassword,
controller: _nodePassword.controller
)
copied to clipboard
@override
void dispose() {
// Don't need to dispose FocusNodeOverlay and TextEditingController, it will be disposed automatically
super.dispose();
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.