No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hans Kokx 8e35cab9ab Updated README
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-10-10 12:59:14 +02:00
example/lib Initial release 2024-10-10 12:56:13 +02:00
lib Initial release 2024-10-10 12:56:13 +02:00
.gitignore Initial release 2024-10-10 12:56:13 +02:00
.metadata Initial release 2024-10-10 12:56:13 +02:00
analysis_options.yaml Initial release 2024-10-10 12:56:13 +02:00
CHANGELOG.md Initial release 2024-10-10 12:56:13 +02:00
CONTRIBUTING.md Initial release 2024-10-10 12:56:13 +02:00
LICENSE Initial release 2024-10-10 12:56:13 +02:00
pubspec.yaml Initial release 2024-10-10 12:56:13 +02:00
README.md Updated README 2024-10-10 12:59:14 +02:00

Features

Unfocuser pops the keyboard when tapping outside of a text input.

Getting started

  • Add unfocuser: ^1.0.0 to your pubspec.yaml.
  • Wrap your parent widget with Unfocuser
    • This often works well when wrapping your MaterialApp

Usage

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Unfocuser(
      child: MaterialApp(
        home: TextFormField(),
      ),
    );
  }
}

Additional information

Original code by Serov Konstantin. All credit goes to them.