Skip to content

Instantly share code, notes, and snippets.

@Anirudhk07
Created May 16, 2020 10:30
Show Gist options
  • Save Anirudhk07/d2be2e3cb811b4757c3bac77b3d26a92 to your computer and use it in GitHub Desktop.
Save Anirudhk07/d2be2e3cb811b4757c3bac77b3d26a92 to your computer and use it in GitHub Desktop.
List<Widget> _buildPageIndicator() {
List<Widget> list = [];
for (int i = 0; i < _numPages; i++)
//_numPages is the number of pages in Onboarding
{
list.add(i == _currentPage ? _indicator(true) : _indicator(false));
}
return list;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment