GFIntroScreen constructor

const GFIntroScreen({
  1. Key? key,
  2. required PageController pageController,
  3. required int currentIndex,
  4. required int pageCount,
  5. required List<Widget> slides,
  6. Color? color,
  7. double? width,
  8. double? height,
  9. BorderRadius? borderRadius,
  10. Border? border,
  11. GFIntroScreenBottomNavigationBar? introScreenBottomNavigationBar,
  12. bool showIntroScreenBottomNavigationBar = true,
  13. Widget? child,
  14. Color navigationBarColor = GFColors.SUCCESS,
  15. double navigationBarHeight = 50,
  16. ShapeBorder? navigationBarShape,
  17. double? navigationBarWidth,
  18. EdgeInsets navigationBarPadding = const EdgeInsets.all(8),
  19. EdgeInsets navigationBarMargin = const EdgeInsets.all(8),
  20. bool showDivider = true,
  21. Color dividerColor = Colors.white,
  22. double dividerHeight = 1,
  23. double dividerThickness = 2,
  24. ShapeBorder? dotShape,
  25. Color inactiveColor = GFColors.LIGHT,
  26. Color activeColor = GFColors.PRIMARY,
  27. double dotHeight = 12,
  28. double dotWidth = 12,
  29. EdgeInsets dotMargin = const EdgeInsets.symmetric(horizontal: 2),
  30. Widget? backButton,
  31. Widget? forwardButton,
  32. Widget? doneButton,
  33. Widget? skipButton,
  34. VoidCallback? onDoneTap,
  35. VoidCallback? onForwardButtonTap,
  36. VoidCallback? onBackButtonTap,
  37. VoidCallback? onSkipTap,
  38. String forwardButtonText = 'NEXT',
  39. String backButtonText = 'BACK',
  40. String doneButtonText = 'GO',
  41. String skipButtonText = 'SKIP',
  42. TextStyle skipButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
  43. TextStyle doneButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
  44. TextStyle backButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
  45. TextStyle forwardButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
  46. bool showButton = true,
  47. bool showPagination = true,
})

GF Intro Screen is virtual unique interactive Slider that helps users get started with an app. It has many features that helps to build custom-made introduction screen sliders. Presents informative screens to users with various possibilities in customization.

Implementation

const GFIntroScreen({
  Key? key,
  required this.pageController,
  required this.currentIndex,
  required this.pageCount,
  required this.slides,
  this.color,
  this.width,
  this.height,
  this.borderRadius,
  this.border,
  this.introScreenBottomNavigationBar,
  this.showIntroScreenBottomNavigationBar = true,
  this.child,
  this.navigationBarColor = GFColors.SUCCESS,
  this.navigationBarHeight = 50,
  this.navigationBarShape,
  this.navigationBarWidth,
  this.navigationBarPadding = const EdgeInsets.all(8),
  this.navigationBarMargin = const EdgeInsets.all(8),
  this.showDivider = true,
  this.dividerColor = Colors.white,
  this.dividerHeight = 1,
  this.dividerThickness = 2,
  this.dotShape,
  this.inactiveColor = GFColors.LIGHT,
  this.activeColor = GFColors.PRIMARY,
  this.dotHeight = 12,
  this.dotWidth = 12,
  this.dotMargin = const EdgeInsets.symmetric(horizontal: 2),
  this.backButton,
  this.forwardButton,
  this.doneButton,
  this.skipButton,
  this.onDoneTap,
  this.onForwardButtonTap,
  this.onBackButtonTap,
  this.onSkipTap,
  this.forwardButtonText = 'NEXT',
  this.backButtonText = 'BACK',
  this.doneButtonText = 'GO',
  this.skipButtonText = 'SKIP',
  this.skipButtonTextStyle = const TextStyle(
    color: Colors.black,
    fontSize: 16,
  ),
  this.doneButtonTextStyle = const TextStyle(
    color: Colors.black,
    fontSize: 16,
  ),
  this.backButtonTextStyle = const TextStyle(
    color: Colors.black,
    fontSize: 16,
  ),
  this.forwardButtonTextStyle = const TextStyle(
    color: Colors.black,
    fontSize: 16,
  ),
  this.showButton = true,
  this.showPagination = true,
}) : super(key: key);