INNER CODE UNIT · Dart
offset
furkantektas/timeline_list · lib/src/timeline_decoration.dart:131
offset = offset.translate(properties.iconSize / 2, 0);
Offset iconOffset = switch (iconAlignment) {
MarkerIconAlignment.top =>
size.topLeft(offset.translate(0, properties.iconSize / 2)),
MarkerIconAlignment.center => size.centerLeft(offset),
MarkerIconAlignment.bottom =>
size.bottomLeft(offset.translate(0, -properties.iconSize / 2))
};
Offset top = size.topLeft(offset -
Offset(0, -properties.iconSize / 2 + properties.markerGap / 2));
Offset end = size.bottomLeft(
offset + Offset(0, properties.iconSize / 2 + properties.markerGap / 2));
// Draw a line from top to icon
if (!isFirst) {
canvas.drawLine(top, iconOffset, linePaint);
}
// Draw a line from icon to end