previousAndNextButtons static method

Widget previousAndNextButtons(
  1. int index,
  2. dynamic lastIndex
)

Implementation

static Widget previousAndNextButtons(int index, lastIndex) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.spaceBetween,
    children: [
      GestureDetector(
        onTap: index == 0 ? null : () => tutorialCoachMark.previous(),
        child: Text(index == 0 ? '' : 'Previous'),
      ),
      GestureDetector(
        onTap: index == lastIndex ? null : () => tutorialCoachMark.next(),
        child: Text(index == lastIndex ? '' : 'Next'),
      ),
    ],
  );
}