OnboardingStyles class
Defines styling options for the onboarding screen.
The OnboardingStyles
class provides a way to customize the visual
appearance of the onboarding screen. This includes settings for text styles,
background color, indicator color, and more.
You can pass an instance of OnboardingStyles
to OSOnboardingScreen
to
customize the onboarding experience. If not provided, default styles are used.
Parameters:
- backgroundColor: Color to use as the background for the onboarding screen.
- indicatorColor: Color for the progress indicator on the onboarding screen.
- buttonDoneStyle: Text style for the "Done" button. Default is an empty
TextStyle
. - buttonSkipStyle: Text style for the "Skip" button. Default is an empty
TextStyle
. - buttonNextStyle: Text style for the "Next" button. Default is an empty
TextStyle
. - titleStyle: Text style for the title text. Default font size is 20, with
FontWeight.w400
. - subTitleStyle: Text style for the subtitle text. Default font size is 12, with
FontWeight.w400
.
Usage:
When creating an instance of OSOnboardingScreen
, you can pass an instance
of OnboardingStyles
to customize the look and feel of the screen. You can
specify individual text styles for various components, set the background
color, and define the color of the progress indicator.
Constructors
- OnboardingStyles.new({Color? backgroundColor, Color? indicatorColor, TextStyle buttonDoneStyle = const TextStyle(), TextStyle buttonSkipStyle = const TextStyle(), TextStyle buttonNextStyle = const TextStyle(), TextStyle titleStyle = const TextStyle(fontSize: InsetsHelper.i20, fontWeight: FontWeight.w400), TextStyle subTitleStyle = const TextStyle(fontSize: InsetsHelper.i12, fontWeight: FontWeight.w400)})
Properties
- backgroundColor → Color?
-
final
-
final
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorColor → Color?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subTitleStyle → TextStyle
-
final
- titleStyle → TextStyle
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited