flutter_interactive_keyboard 0.1.3
flutter_interactive_keyboard: ^0.1.3 copied to clipboard

A flutter plugin to dismiss the keyboard interactively similar to the IOS native behavior. On Android the functionality is mimed without drag.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        resizeToAvoidBottomInset: false,
        appBar: AppBar(
          title: const Text('Interactive Keyboard'),
        ),
        body: Container(
          margin: EdgeInsets.only(top:100),
          child: Column(
            children: <Widget>[
              TextField(
                keyboardAppearance: Brightness.dark,
              ),
              Expanded(
                child: KeyboardManagerWidget(
                  onKeyboardClose: (){
                    print("keyboardClose");
                  },
                  onKeyboardOpen: () {
                    print("keyboardOpen");
                  },
                  child: ListView.builder(
                    itemCount: 100,
                    itemBuilder: (context,index){
                      return ListTile(
                        title: Text("element $index"),
                      );
                    },
                  ),
                )
              )
            ],
          ),
        ),
      ),
    );
  }
}
6
likes
90
pub points
67%
popularity

A flutter plugin to dismiss the keyboard interactively similar to the IOS native behavior. On Android the functionality is mimed without drag.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploaders

mcrovero@gmail.com
timapple@mailfence.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_interactive_keyboard