GFIntroScreen constructor
const
GFIntroScreen({
- Key? key,
- required PageController pageController,
- required int currentIndex,
- required int pageCount,
- required List<
Widget> slides, - Color? color,
- double? width,
- double? height,
- BorderRadius? borderRadius,
- Border? border,
- Widget? child,
- bool showDivider = true,
- Color dividerColor = Colors.white,
- double dividerHeight = 1,
- double dividerThickness = 2,
- ShapeBorder? dotShape,
- Color inactiveColor = GFColors.LIGHT,
- Color activeColor = GFColors.PRIMARY,
- double dotHeight = 12,
- double dotWidth = 12,
- EdgeInsets dotMargin = const EdgeInsets.symmetric(horizontal: 2),
- Widget? backButton,
- Widget? forwardButton,
- Widget? doneButton,
- Widget? skipButton,
- VoidCallback? onDoneTap,
- VoidCallback? onForwardButtonTap,
- VoidCallback? onBackButtonTap,
- VoidCallback? onSkipTap,
- String forwardButtonText = 'NEXT',
- String backButtonText = 'BACK',
- String doneButtonText = 'GO',
- String skipButtonText = 'SKIP',
- TextStyle skipButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
- TextStyle doneButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
- TextStyle backButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
- TextStyle forwardButtonTextStyle = const TextStyle(color: Colors.black, fontSize: 16),
- bool showButton = true,
- 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);