Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
class _MainPageState extends State<MainPage> with SingleTickerProviderStateMixin {
void _onTap(Note note) {
setState(() {
note.state = NoteState.tapped; //<--set note state to tapped
_drawLine(int lineNumber) {
return Expanded(
child: Line(
lineNumber: lineNumber,
currentNotes: notes.sublist(currentNoteIndex, currentNoteIndex + 5),
onTileTap: _onTap, //<--specify onTap callback
animation: animationController,
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.