Last active
July 5, 2020 01:46
-
-
Save themobilecoder/e99a6fbb3d9f934a302e876353947fea to your computer and use it in GitHub Desktop.
InkRibbon code snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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