flutter_interactive_keyboard 0.2.0 flutter_interactive_keyboard: ^0.2.0 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.
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"),
);
},
),
)
)
],
),
),
),
);
}
}