Cross-Selling Component
Boost revenue and enhance user satisfaction with our automated upselling. Tailored suggestions for additional services or products are seamlessly offered based on individual product usage, optimizing
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<ShareWithComponentCubit>(),
),
],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<ShareWithComponentCubit>(),
),
],
child: MaterialApp(
title: 'Flutter Demo',
home: CrossSellingComponent(
questProvider: QuestProvider(
apiKey: "apiKey",
entityId: "entityId",
themeConfig: QuestThemeConfig(
// secondaryColor: Colors.red,
// primaryColor: Colors.blue,
// buttonColor: Colors.yellow,
// backgroundColor: Colors.yellow,
// fontStyle: "libre baskerville",
// borderColor: Colors.red
)
),
crossSellingUiPropsModel: CrossSellingUiPropsModel(
questId: "questId",
token: "Token",
userId: "userId",
// expiryDate: 24,
// showFooter: false,
// heading: "50% off on limited",
// description: "Grab deals before they go off!!!",
// shareButtonText: "Avail now",
// gradientBackground: true,
// isEmail: false,
),
)
),
);
}
}