Skip to content

Instantly share code, notes, and snippets.

@MarcinusX MarcinusX/line.dart Secret
Created Jan 13, 2019

What would you like to do?
class Line extends AnimatedWidget {
final Function(Note) onTileTap; //<--new parameter
Widget build(BuildContext context) {
List<Widget> tiles = {
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
You can’t perform that action at this time.