dismiss_keyboard_on_tap 1.0.1 copy "dismiss_keyboard_on_tap: ^1.0.1" to clipboard
dismiss_keyboard_on_tap: ^1.0.1 copied to clipboard

PlatformAndroidiOS
outdated

Dismisses Keyboard by tapping outside text field on the screen.

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.

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.

11
likes
160
pub points
74%
popularity

Publisher

verified publishercodingfries.com

Dismisses Keyboard by tapping outside text field on the screen.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dismiss_keyboard_on_tap