couchkeys

Pub Package Pub Points

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.

image

Features

  • Fully customizable keyboard layout
  • Customizable key appearance and behavior
  • Easy integration with Flutter TextFields

Getting started

Add this to your pubspec.yaml file:

dependencies:
  couchkeys: ^1.0.0

Then run:

flutter pub get

Usage

...
// 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),
                ]
            )
        )
    }
}

Documentation

Detailed API documentation can be found on pub.dev.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or file an Issue on GitHub.

License

This project is MIT Licensed. See LICENSE file for details.

Libraries

couchkeys