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(),
],
),
),
),
),
),
);
}