Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Last active January 13, 2019 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinusX/4531752e2293050737b493a3bc2ce471 to your computer and use it in GitHub Desktop.
Save MarcinusX/4531752e2293050737b493a3bc2ce471 to your computer and use it in GitHub Desktop.
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