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
Last updated
dependencies:
questlabs_flutter_sdk:
git:
url: "Replace with your github URL"
ref: master
flutter_bloc: ^8.1.6
themeConfig: QuestThemeConfig(
secondaryColor: Colors.red,
primaryColor: Colors.blue,
buttonColor: Colors.yellow,
backgroundColor: Colors.yellow,
fontStyle: "libre baskerville",
borderColor: Colors.red
)void main() {
runApp(const MyApp());
getItInit();
getIt<SharedPref>().init();
}providers: [
BlocProvider(
create: (context) => getIt<GetStartedCubit>(),
),
],import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:questlabs_flutter_sdk/questlabs_flutter_sdk.dart';
void main() {
runApp(const MyApp());
getItInit();
getIt<SharedPref>().init();
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MultiBlocProvider(
providers: [
BlocProvider(
create: (context) => getIt<GetStartedCubit>(),
),
],
child: MaterialApp(
title: 'Flutter Demo',
home: GetStartedComponent(
questProvider: QuestProvider(
apiKey: 'apiKey',
entityId: 'entityId',
// themeConfig: QuestThemeConfig(
// backgroundColor: Colors.white,
// fontStyle: "figtree",
// borderColor: Colors.grey,
// buttonColor: Colors.purple,
// primaryColor: Colors.blue,
// secondaryColor: Colors.pink,
// )
),
getStarted: GetStarted(
userId: "entityId",
token: "token",
questId: "questId",
template: "template1",
showFooter: true,
showProgressBar: true,
),
)
),
);
}
}