buildVertical method

  1. @override
Widget buildVertical()
override

Implementation

@override
Widget buildVertical() {
  return SizedBox(
    height: double.maxFinite,
    child: LayoutBuilder(builder: (context, constraints) {
      final maxLayoutHeight = constraints.maxHeight;
      final segmentSpace = maxLayoutHeight / tickCount;
      return Column(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: List.generate(tickCount, (index) {
          return SizedBox(
            height: segmentSpace,
            child: DrawGridLine(
              vertical: false,
              lineStyle: domainAxis.gridLineStyle!,
            ),
          );
        }),
      );
    }),
  );
}