Skip to content

Instantly share code, notes, and snippets.

@themobilecoder
Last active July 5, 2020 01:46
Show Gist options
  • Save themobilecoder/e99a6fbb3d9f934a302e876353947fea to your computer and use it in GitHub Desktop.
Save themobilecoder/e99a6fbb3d9f934a302e876353947fea to your computer and use it in GitHub Desktop.
InkRibbon code snippets
@override
void initState() {
super.initState();
_typewriterKeyboardController = TypewriterKeyboardController();
_typewriterKeyboardController.textStream.listen(_onTextReceived);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: BackButton(),
),
bottomSheet: TypewriterKeyboard(
typewriterKeyboardController: _typewriterKeyboardController,
),
);
}
void _onTextReceived(String text) {
final textValue = text.toLowerCase();
switch (textValue) {
//Update EditText
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment