GFIntroScreen class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GFIntroScreen
- Available extensions
Constructors
-
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.
const
Properties
- activeColor → Color
-
defines pagination active color
final
- backButton → Widget?
-
takes any Widget to define the backButton widget,
final
- backButtonText → String
-
takes String to define backButton text
final
- backButtonTextStyle → TextStyle
-
defines the backButton textStyle
final
- border → Border?
-
defines GFIntroScreen slides border
final
- borderRadius → BorderRadius?
-
defines GFIntroScreen border radius to defines slides shape
final
- child → Widget?
-
defines GFIntroScreenBottomNavigationBar's child, it takes any widget
final
- color → Color?
-
defines background color of the GFIntroScreen slides
final
- currentIndex → int
-
defines the currentIndex of GFIntroScreen slides, default value is 0
final
- dividerColor → Color
-
defines divider color
final
- dividerHeight → double
-
defines divider height
final
- dividerThickness → double
-
defines divider thickness
final
- doneButton → Widget?
-
takes any Widget to define the doneButton widget
final
- doneButtonText → String
-
takes String to define doneButton text
final
- doneButtonTextStyle → TextStyle
-
defines the doneButton textStyle
final
- dotHeight → double
-
defines pagination height
final
- dotMargin → EdgeInsets
-
defines pagination in between space
final
- dotShape → ShapeBorder?
-
defines pagination shape
final
- dotWidth → double
-
defines pagination width
final
- forwardButton → Widget?
-
takes any Widget to define the forwardButton widget
final
- forwardButtonText → String
-
takes String to define forwardButton text
final
- forwardButtonTextStyle → TextStyle
-
defines the forwardButton textStyle
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
defines GFIntroScreen slides height
final
- inactiveColor → Color
-
defines pagination inactive color
final
-
defines GFIntroScreen's bottom navigation bar
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- marginZero → Widget
-
Available on Widget, provided by the WidgetMarginX extension
no setter -
defines GFIntroScreenBottomNavigationBar color
final
-
defines GFIntroScreenBottomNavigationBar height
final
-
defines GFIntroScreenBottomNavigationBar margin
final
-
defines GFIntroScreenBottomNavigationBar padding
final
-
defines the shape of GFIntroScreenBottomNavigationBar
final
-
defines GFIntroScreenBottomNavigationBar width
final
- onBackButtonTap → VoidCallback?
-
Called when the back button is tapped
final
- onDoneTap → VoidCallback?
-
Called when the done button is tapped
final
- onForwardButtonTap → VoidCallback?
-
Called when the forward button is tapped
final
- onSkipTap → VoidCallback?
-
Called when the skip button is tapped
final
- paddingZero → Widget
-
Available on Widget, provided by the WidgetPaddingX extension
no setter - pageController → PageController
-
allows one to control GFIntroScreen slides
final
- pageCount → int
-
defines the length of GFIntroScreen slides, default value is 0
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showButton → bool
-
on true state, displays buttons, defaults to true
final
- showDivider → bool
-
on true state, displays Divider, defaults to true
final
-
on true state, displays GFIntroScreenBottomNavigationBar, defaults to false
final
- showPagination → bool
-
on true state, displays pagination, defaults to true
final
- skipButton → Widget?
-
takes any Widget to define the skipButton widget
final
- skipButtonText → String
-
takes String to define skipButton text
final
- skipButtonTextStyle → TextStyle
-
defines the skipButton textStyle
final
-
slides
→ List<
Widget> -
defines the list of slides
final
- sliverBox → Widget
-
Available on Widget, provided by the WidgetSliverBoxX extension
no setter - width → double?
-
defines GFIntroScreen slides width
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _GFIntroScreenState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited