-
-
Save MarcinusX/c3794b4d750690860613fead652be453 to your computer and use it in GitHub Desktop.
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
class Line extends AnimatedWidget { | |
final Function(Note) onTileTap; //<--new parameter | |
... | |
@override | |
Widget build(BuildContext context) { | |
... | |
List<Widget> tiles = thisLineNotes.map((note) { | |
... | |
child: Tile( | |
height: tileHeight, | |
state: note.state, | |
onTap: () => onTileTap(note), //<-- pass tap callback | |
) | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment