getChildren method

List<Widget> getChildren()

Implementation

List<Widget> getChildren() {
  return [
    Column(
      children: [
        Container(
          color: index == 0
              ? Colors.transparent
              : (index <= activeIndex ? activeBarColor : inActiveBarColor),
          width: barWidth,
          height: gap,
        ),
        DotProvider(
          activeIndex: activeIndex,
          index: index,
          item: item,
          totalLength: totalLength,
          iconHeight: iconHeight,
          iconWidth: iconWidth,
        ),
        Container(
          color: index == totalLength - 1
              ? Colors.transparent
              : (index < activeIndex ? activeBarColor : inActiveBarColor),
          width: barWidth,
          height: gap,
        ),
      ],
    ),
    const SizedBox(width: 8),
    Expanded(
      child: Column(
        crossAxisAlignment:
            isInverted ? CrossAxisAlignment.end : CrossAxisAlignment.start,
        children: [
          if (item.title != null) ...[
            Text(
              item.title!.text,
              textAlign: TextAlign.start,
              style: item.title!.textStyle ??
                  const TextStyle(
                    fontSize: 14,
                    color: Colors.black,
                    fontWeight: FontWeight.w600,
                  ),
            ),
          ],
          if (item.subtitle != null) ...[
            const SizedBox(height: 8),
            Text(
              item.subtitle!.text,
              textAlign: TextAlign.start,
              style: item.subtitle!.textStyle ??
                  const TextStyle(
                    fontSize: 12,
                    color: Colors.grey,
                    fontWeight: FontWeight.w500,
                  ),
            ),
          ],
        ],
      ),
    ),
  ];
}