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

A simple widget to unfocus any text field in Flutter

pub-web.flutter-io.cnstyle: effective dart Awesome Flutter

Features #

This widget is used to unfocus any text field in Flutter. You don't need to use any FocusNodes, FocusScope and other things to do it. Very easy to use

It's also a part of my other package Flutter Multi Formatter

But for those, who don't need any formatters

Usage #

Unfocuser allows you to unfocus any text input and hide the onscreen keyboard when you tap outside of a text input. Use it like this:

@override
Widget build(BuildContext context) {
return Unfocuser(
    child: Scaffold(
    body: SingleChildScrollView(
        child: Padding(
        padding: const EdgeInsets.all(30.0),
        child: Form(
            key: _formKey,
            child: Column(
            children: <Widget>[
                TextFormField(),
            ],
            ),
        ),
        ),
    ),
    ),
);
}

Additional information #

4
likes
120
pub points
47%
popularity

Publisher

verified publishersoftmaestri.com

A simple widget to unfocus any text field in Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_unfocuser