IntroductionScreen class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- IntroductionScreen
Constructors
-
IntroductionScreen.new({dynamic key, required List<
String> imageurl, required List<String> titles, required List<String> descriptions, required Color buttoncolor, VoidCallback? onGetStarted, VoidCallback? onSkip, required Widget introShownWidget, required BuildContext context}) -
this is the package for the introduction screen
it is a simple introduction screen that can be used to introduce the app to the user
it has a skip button and a get started button
const
Properties
-
this parameter for the button color
the color of the button is the color of the button the color of the button is the color of the button buttoncolor is a required parameterfinal - context → BuildContext
-
final
-
descriptions
→ List<
String> -
the list of descriptions for the pages
the descriptions are in the form of a list of strings
descriptions is a required parameter
the descriptions are the descriptions for the pages
example:
"description1", "description2"
final - hashCode → int
-
The hash code for this object.
no setterinherited
-
imageurl
→ List<
String> -
the list of images for the pages
the images are in the form of a list of strings
imageurl is a required parameter
paramter imageurl is assets image url or path
example:
"assets/images/image1.png", "assets/images/image2.png"
final - introShownWidget → Widget
-
function for the intro shown
if intro is shown already then it will not show again
introShownWidget is an optional parameter
example: () => print("Intro shown") or navigate to another screen or else
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onGetStarted → VoidCallback?
-
function for the get started button
the function for the get started button
onGetStarted is an optional parameter
example: () => print("Get Started") or navigate to another screen or else
final
- onSkip → VoidCallback?
-
function for the skip button
the function for the skip button
onSkip is an optional parameter
example: () => print("Skip") or navigate to another screen or else
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
titles
→ List<
String> -
the list of titles for the pages
the titles are in the form of a list of strings
titles is a required parameter
the titles are the titles for the pages
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< IntroductionScreen> -
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, 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