https://github.com/codingfries/dismiss_keyboard_on_tap
https://github.com/codingfries/dismiss_keyboard_on_tap
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codingfries/dismiss_keyboard_on_tap
- Owner: CodingFries
- License: mit
- Created: 2021-08-03T13:00:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T15:02:02.000Z (over 2 years ago)
- Last Synced: 2025-02-02T05:15:30.374Z (over 1 year ago)
- Language: Dart
- Size: 1.45 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dismiss_keyboard_on_tap
Dismisses Keyboard by tapping outside text field on the screen.
## Demo

## Usage
Simply wrap MaterialApp with this widget and it will dismiss the keyboard whenever tapped outside the Text Field on any Screens.
```dart
import 'package:dismiss_keyboard_on_tap/dismiss_keyboard_on_tap.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DismissKeyboardOnTap(
child: MaterialApp(
home: ...,
),
);
}
}
```
You can also use it around separate widgets if you want more control.
That's all Enjoy.