-
-
Save MarcinusX/4531752e2293050737b493a3bc2ce471 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 _MainPageState extends State<MainPage> { | |
List<Note> notes = initNotes(); | |
@override | |
Widget build(BuildContext context) { | |
return ... | |
Row( | |
children: <Widget>[ | |
_drawLine(0), | |
LineDivider(), | |
_drawLine(1), | |
LineDivider(), | |
_drawLine(2), | |
LineDivider(), | |
_drawLine(3), | |
], | |
} | |
_drawLine(int lineNumber) { | |
return Expanded( | |
child: Line( | |
lineNumber: lineNumber, | |
currentNotes: notes.sublist(0, 4), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment