dismiss_keyboard_on_tap 1.0.1 icon indicating copy to clipboard operation
dismiss_keyboard_on_tap: ^1.0.1 copied to clipboard

Dismisses Keyboard by tapping outside text field on the screen.

example/lib/main.dart

import 'package:dismiss_keyboard_on_tap/dismiss_keyboard_on_tap.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return DismissKeyboardOnTap(
      child: MaterialApp(
        home: Scaffold(
          body: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text('Dismiss Keyboard Example'),
              Padding(
                padding: const EdgeInsets.all(20.0),
                child: TextField(
                  decoration: InputDecoration(
                    border: OutlineInputBorder(
                      borderRadius: BorderRadius.circular(10),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
9
likes
140
pub points
70%
popularity

Publisher

verified publisher iconcodingfries.com

Dismisses Keyboard by tapping outside text field on the screen.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on dismiss_keyboard_on_tap