IntroViewsFlutter class
This is the IntroViewsFlutter widget of app which is a stateful widget as its state is dynamic and updates asynchronously.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- IntroViewsFlutter
Constructors
-
IntroViewsFlutter(List<
PageViewModel> pages, {Key? key, VoidCallback? onTapDoneButton, bool showSkipButton = true, TextStyle? pageButtonTextStyles, VoidCallback? onTapBackButton, bool showNextButton = false, bool showBackButton = false, double pageButtonTextSize = 18.0, String? pageButtonFontFamily, VoidCallback? onTapSkipButton, VoidCallback? onTapNextButton, Color pageButtonsColor = const Color(0x88FFFFFF), Widget doneText = const Text('DONE'), Widget nextText = const Text('NEXT'), Widget skipText = const Text('SKIP'), Widget backText = const Text('BACK'), bool doneButtonPersist = false, MainAxisAlignment columnMainAxisAlignment = MainAxisAlignment.spaceAround, double fullTransition = FULL_TRANSITION_PX, Color? background}) -
const
Properties
- background → Color?
-
Sets the background color to Colors.transparent if you have your own
background image below.
final
- backText → Widget
-
Overrides 'BACK' text with your own text.
final
- columnMainAxisAlignment → MainAxisAlignment
-
MainAxisAlignment for PageViewModel page column alignment.
final
- doneButtonPersist → bool
-
Always show
Done
button.final - doneText → Widget
-
Overrides 'DONE' text with your own text.
final
- fullTransition → double
-
Adjusts how how much the user must drag for a full page transition.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- nextText → Widget
-
Overrides 'NEXT' text with your own text.
final
- onTapBackButton → VoidCallback?
-
Executes when Back button is pressed.
final
- onTapDoneButton → VoidCallback?
-
Callback on Done button pressed.
final
- onTapNextButton → VoidCallback?
-
Executes when Next button is pressed.
final
- onTapSkipButton → VoidCallback?
-
Executes when Skip button is pressed.
final
- pageButtonFontFamily → String?
-
Sets the font family for Skip and Done buttons.
final
- pageButtonsColor → Color
-
Sets the text color for Skip and Done buttons.
final
- pageButtonTextSize → double
-
Sets the text size for Skip and Done buttons.
final
- pageButtonTextStyles → TextStyle?
-
TextStyles for Done and Skip buttons.
final
-
pages
→ List<
PageViewModel> -
List of
PageViewModel
to display.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBackButton → bool
-
Whether you want to show the Back button or not.
final
- showNextButton → bool
-
Whether you want to show the Next button or not.
final
- showSkipButton → bool
-
Whether you want to show the Skip button or not.
final
- skipText → Widget
-
Overrides 'SKIP' text with your own text.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _IntroViewsFlutterState -
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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}) → 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