Get Started Component
The Get Started component is a highly customizable Flutter widget that provides a quick and easy onboarding guide for your Flutter application, helping users navigate and interact with your app
Components Visuals

Installation
To use the get started component , you need to install questlabs_flutter_sdk
package into your project
First, navigate to the root directory of your Flutter project. Open the
pubspec.yaml
file using your preferred code editor.Under the
dependencies
section in yourpubspec.yaml
file, add the following line to include thequestlabs_flutter_sdk
packageAfter saving your changes, open your terminal or command prompt and run the following command to fetch the new dependency
Props of Get Started Component
questProvider
QuestProvider
Provides necessary configuration such as API key, entity ID, and optional theme settings
Yes
apiKey
String
API key to authenticate requests.
Yes
entityId
String
Entity ID associated with the quest.
Yes
themeConfig
QuestThemeConfig
Customizes theme settings like background color, font style, border color, button color, etc.
No
primaryColor
Color
Sets the primary color of the component .
np
secondaryColor
Color
Sets the secondary color of the component .
no
buttonColor
Color
Defines the color of buttons within the component .
no
backgroundColor
Color
Specifies the background color of the component .
no
borderColor
Color
Defines the color of the component's border.
no
fontStyle
String
Sets the font style for text within the component (e.g., "poppins"
)
no
getStarted
GetStarted
Contains user ID, quest ID, token, and display options for the "Get Started" component.
Yes
userId
String
Unique user identifier.
Yes
token
String
Token for authenticating the user session.
Yes
questId
String
Unique quest identifier.
Yes
template
String
Specifies the template type
no
showFooter
bool
Whether or not to display the footer in the "Get Started" component.
no
showProgressBar
bool
Whether or not to display the progress bar.
no
You can customize the UI with the type of QuestThemeConfig would be
Basic Usage:
In your
main()
function, ensure you initialize the app and dependencies as follows:
Add the following
BlocProvider
setup to yourproviders
list to initialize theGetStartedCubit
for state management:
Watch the video below for a step-by-step guide on testing the Get Started component in your Flutter project.
Last updated