v2.0.4
keyboard_service
कीबोर्ड दृश्यता / (स्वचालित-) छिपाने पैकेज बिना मूल प्लगइन की आवश्यकता
43लाइक 1.4 हज़ार30-दिन डाउनलोड160Pub अंक
AndroidiOSWebmacOSWindowsLinux
कीबोर्ड दृश्यता / (स्वचालित) छिपाने पैकेज बिना मूल प्लगइन
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Keyboard visibility / (auto-) dismiss package without the need of native plugin
Watch on GitHub Star on GitHub pub package
Use it for example when you want to automatically dimiss the on-screen keyboard when tapped outside of textfield. And if you want know if the on-screen keyboard is visible and/or want to explicitly dismiss it.
There are 2 classes
Also see example project
Wrap your top scaffold:
return KeyboardAutoDismiss(
scaffold: Scaffold(
appBar: AppBar(
title: Text('Keyboard Service Example'),
),
...
),
);
Use the service class if needed:
// Use method below to dismiss the keyboard
KeyboardService.dismiss();
// Use the optional BuildContext parameter to remove focus of a TextField
KeyboardService.dismiss(unfocus: context);
// Check if the keyboard is visible
KeyboardService.isVisible(context);
This project is licensed under the MIT License - see the license file for details.