Skip to content

Instantly share code, notes, and snippets.

@MarcinusX MarcinusX/main.dart Secret
Last active Jan 13, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.