Skip to content

Instantly share code, notes, and snippets.

@Norbert515
Created February 20, 2018 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Norbert515/0bfbe353f614eb2fa17416d73c600b58 to your computer and use it in GitHub Desktop.
Save Norbert515/0bfbe353f614eb2fa17416d73c600b58 to your computer and use it in GitHub Desktop.
BookNotesPage#initState()
@override
void initState() {
super.initState();
_textController = new TextEditingController(text: widget.book.notes);
subject.stream.debounce(new Duration(milliseconds: 400)).listen((text){
widget.book.notes = text;
BookDatabase.get().updateBook(widget.book);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment