Skip to content

Instantly share code, notes, and snippets.

@xinthink
Created March 5, 2020 09:58
Show Gist options
  • Save xinthink/50837a0b043d6f884979078f067d5dfa to your computer and use it in GitHub Desktop.
Save xinthink/50837a0b043d6f884979078f067d5dfa to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
final uid = Provider.of<CurrentUser>(context).data.uid;
return ChangeNotifierProvider.value(
value: _note,
child: Consumer<Note>(
builder: (_, __, ___) => Hero(
tag: 'NoteItem${_note.id}',
child: DefaultTextStyle(
style: ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment