pseudo_keyboard 1.0.2 copy "pseudo_keyboard: ^1.0.2" to clipboard
pseudo_keyboard: ^1.0.2 copied to clipboard

Dart 1 only

A Flutter widget to simulate keyboard UI. This is not not a real keyboard. You can listen to key up and key down event with keycode and shift state as parameter

pseudo_keyboard #

Widget to simulate keyboard UI in flutter

not a real keyboard

Getting Started #

to include in flutter yaml

  dependencies:
    pseudo_keyboard: ^1.0.0

sample in code:

import 'package:pseudo_keyboard/pseudo_keyboard.dart';

...

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("Title"),
      ),
      body: new SafeArea(
        child: new Column(
          children: <Widget>[
            new Expanded(
              flex: 2,
              child: new Center(
                child: new Text("Main Body")
              )
            ),
            new KeyboardWidget(
              onKeyUp: (int keyCode, bool isShift, bool canceled) {
                debugPrint("keyPressUp {code: $keyCode, shift: $isShift, canceled: $canceled}");
              }, 
              onKeyDown: (int keyCode, bool isShift) {
                debugPrint("keyPressDown {code: $keyCode, shift: $isShift}");
              },
            ),
          ],
        ),
      ),
    );
  }

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A Flutter widget to simulate keyboard UI. This is not not a real keyboard. You can listen to key up and key down event with keycode and shift state as parameter

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on pseudo_keyboard