A customizable virtual keyboard package for Flutter applications, specifically designed for use with D-pad navigation on devices like smart TVs and set-top boxes.
Inspired by the YouTube app for Android TV.
- Fully customizable keyboard layout
- Customizable key appearance and behavior
- Easy integration with Flutter
TextFields
Add this to your pubspec.yaml
file:
dependencies:
couchkeys: ^1.0.0
Then run:
flutter pub get
...
// Import the package
import 'package:couchkeys/couchkeys.dart';
...
class _MyHomePageState extends State<MyHomePage> {
// Create a controller to use with both Couchkeys and TextField
final controller = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
...
body: Column(
children: [
SizedBox(
width: 500,
// Create the Couchkeys widget
child: Couchkeys(
keyboardHeight: 200,
controller: controller,
)
),
// Create TextField widget with a controller to display the value
TextField(controller: controller),
]
)
)
}
}
Detailed API documentation can be found on pub.dev.
Contributions are welcome! Please feel free to submit a Pull Request or file an Issue on GitHub.
This project is MIT Licensed. See LICENSE file for details.