previousAndNextButtons static method
Widget
previousAndNextButtons(
- int index,
- 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'),
),
],
);
}