Skip to content

Instantly share code, notes, and snippets.

@datasciencemonkey
Created September 30, 2020 03:12
Show Gist options
  • Save datasciencemonkey/f2a56dae9b11cd0c5b4cdb0fa8807d8c to your computer and use it in GitHub Desktop.
Save datasciencemonkey/f2a56dae9b11cd0c5b4cdb0fa8807d8c to your computer and use it in GitHub Desktop.
update app state for the TV app
void updateUI(dynamic recommendationJSON) {
setState(() {
if (recommendationJSON == null) {
recommendationText = '';
return;
}
recommendationText =
recommendationJSON['events'][1]['event']['Recommendation'];
print(recommendationText);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment