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

outdated

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),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
11
likes
0
pub points
74%
popularity

Publisher

verified publishercodingfries.com

Dismisses Keyboard by tapping outside text field on the screen.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dismiss_keyboard_on_tap