SLiQ SDK Integration Guide (Flutter)
Note: The SLiQ SDK currently supports Android and iOS. Full Web support will be updated and released soon!
The official SLiQ SDK allows you to seamlessly integrate Loan Against Mutual Funds (LAMF), Loan Against Securities (LAS), and Loan Against Insurance Policies (LAIP) journeys directly into your Flutter applications.
Installation
Add the SDK to your pubspec.yaml file:
dependencies:
las_app: ^1.1.0 # Use the latest version from pub.dev
Run the following command to fetch the dependency:
flutter pub get
Initialization & Usage
You can launch the SDK's journey directly from anywhere in your app by calling LamfSdk.launch.
Here is a basic example of how to start the journey:
import 'package:flutter/material.dart';
import 'package:las_app/lamf_sdk.dart';
void startSliqJourney(BuildContext context) async {
await LamfSdk.launch(
context,
mobileNumber: '9876543210', // Required: User's mobile number
environment: 'uat', // 'dev', 'uat', or 'prod' (default is 'prod')
// Optional parameters:
token: 'YOUR_AUTH_TOKEN', // If the user is already authenticated
allowedJourneys: [ // Restrict which journeys are available
SdkJourney.LAS,
SdkJourney.LAMF,
],
);
}
Parameters
context(Required): TheBuildContextof the host application.mobileNumber(Required): The 10-digit mobile number of the user.environment(Optional): Target environment (dev,uat,prod). Defaults toprod.token(Optional): An existing authentication token. If provided, the SDK will bypass the OTP/Login screens.allowedJourneys(Optional): A list ofSdkJourneyenums (e.g.,[SdkJourney.LAMF, SdkJourney.LAS]) to restrict what the user can apply for.theme(Optional): A customThemeDatato inject your app's styling into the SDK.redirectUrl(Optional): A custom URL to redirect to after web-based flows.reqId/sharesReqId(Optional): Existing request IDs to resume a previous application state.
Libraries
- app
- app_container
- common_widgets/abcl_web_screen
- common_widgets/c_drop_down
- common_widgets/c_input
- common_widgets/c_loader
- common_widgets/c_network_image
- common_widgets/c_selection_card
- common_widgets/c_snackbar
- common_widgets/c_text
- common_widgets/drop_dwon
- common_widgets/upload_tile
- common_widgets/webview_screen
- core/app_state_provider
- core/extensions/context_ext
- core/extensions/formatted_date_ext
- core/extensions/num_ext
- core/extensions/string_ext
- core/injection_container
- core/network/api_client
- core/network/api_constants
- core/network/api_interceptor
- core/results/result
- core/services/websocket_service
- core/theme/app_colors
- core/theme/app_spacing
- core/theme/app_theme
- core/theme/app_typography
- core/utils/app_lifecycle_service
- core/utils/app_widget_util
- core/utils/assets
- core/utils/debounce
- core/utils/enums
- core/utils/file_management
- core/utils/formatters
- core/utils/location_service
- core/utils/logger
- core/utils/pdf_view
- core/utils/validators
- core/utils/web_tab_manager
- features/abcl/bloc/bloc_abCl_journey
- features/abcl/model_abCl_journey
- features/abcl/repository_abCl_journey
- features/abcl/view_abCl_journey
- features/abcl/widget/widget_abCl_document
- features/abcl/widget/widget_abCl_eligibility
- features/abcl/widget/widget_abCl_mandate
- features/abcl/widget/widget_abCl_pledge
- features/abcl/widget/widget_abCl_webview
- features/dashboard/bloc/bloc_dashboard
- features/dashboard/model_dashboard
- features/dashboard/model_user_actions
- features/dashboard/repository_dashboard
- features/dashboard/view_dashboard
- features/de_pledge/bloc/bloc_de_pledge
- features/de_pledge/provider_de_pledge
- features/de_pledge/repository_de_pledge
- features/de_pledge/view_de_pledge
- features/dialogs/auto_disbursal/bloc/bloc_auto_disbursal
- features/dialogs/auto_disbursal/model_auto_disbursal
- features/dialogs/auto_disbursal/repository_auto_disbursal
- features/dialogs/auto_disbursal/view_auto_disbursal
- features/dialogs/withdraw/view_withdraw
- features/home/bloc/bloc_home
- features/home/repository_home
- features/home/view_home
- features/increase_limit/bloc/increase_bloc
- features/increase_limit/bloc/increase_event
- features/increase_limit/bloc/increase_state
- features/increase_limit/view/funds_breakdown_ui
- features/increase_limit/view/increase_limit_fund_selection
- features/increase_limit/view/kyc_page
- features/increase_limit/view/pan_details
- features/increase_limit/view/pledge_page
- features/increase_limit/view/pledgeable_funds_ui
- features/increase_limit/view/portfolio_page
- features/increase_limit/view/success_ui
- features/increase_limit/widgets/common_header
- features/increase_limit/widgets/fund_page_widgets
- features/increase_limit/widgets/overlay_flow
- features/increase_limit/widgets/portfolio_fetched_sheet
- features/increase_limit/widgets/portfolio_refresh_sheet
- features/increase_limit/widgets/step_tile
- features/journey/bloc/bloc_journey
- features/journey/repository_journey
- features/journey/view_journey
- features/journey/widget/widget_web_view
- features/login/bloc/login_bloc
- features/login/repository/cancel_application_repo
- features/login/repository/login_repository
- features/login/repository/pledge_status_repo_drop
- features/login/view/login_screen
- features/new_user/bloc/eligibility_bloc
- features/new_user/digio_service
- features/new_user/kyc_helper
- features/new_user/repository/digio_repo
- features/new_user/repository/insurance_repo
- features/new_user/repository/kyc_repo
- features/new_user/repository/lenders_data_repo
- features/new_user/repository/pan_veirfy_repo
- features/new_user/repository/pledge_status_repo
- features/new_user/repository/rta_otp_repo
- features/new_user/repository/rta_repo
- features/new_user/repository/video_kyc_repo
- features/new_user/view/eligibility_form
- features/new_user/view/insurance_success_screen
- features/new_user/view/succcess_pledge_view
- features/new_user/view/widgets/dialog/dialog_portfolio_fetch
- features/new_user/view/widgets/dialog/dialog_portfolio_result
- features/new_user/view/widgets/four_pledge_funds/pledge_funds_otp_screen
- features/new_user/view/widgets/one_check_eligibility/edit_loan_dialog
- features/new_user/view/widgets/one_check_eligibility/eligibility_result_bottom_sheet
- features/new_user/view/widgets/one_check_eligibility/insurance_step_one
- features/new_user/view/widgets/one_check_eligibility/insurance_step_two
- features/new_user/view/widgets/one_check_eligibility/rw_journey_start_screen
- features/new_user/view/widgets/one_check_eligibility/step_fund_type
- features/new_user/view/widgets/one_check_eligibility/step_pan
- features/new_user/view/widgets/three_kyc_verification/step_checker_view
- features/new_user/view/widgets/two_lender_selection/demat_funds_detail_view
- features/new_user/view/widgets/two_lender_selection/fund_list_item
- features/new_user/view/widgets/two_lender_selection/fund_selection_view
- features/new_user/view/widgets/two_lender_selection/lender_list_view
- features/new_user/view/widgets/two_lender_selection/lender_selection
- features/new_user/view/widgets/two_lender_selection/non_pledgeable_funds_details_view
- features/new_user/view/widgets/two_lender_selection/pledgable_funds_details_view
- features/new_user/view/widgets/two_lender_selection/portfolio_breakdown
- features/portfolio/bloc/bloc_portfolio
- features/portfolio/model_portfolio
- features/portfolio/repository/repository_portfolio
- features/portfolio/repository/statement_repo
- features/portfolio/view_portfolio
- features/profile/bloc/bloc_profile
- features/profile/contact_us_page
- features/profile/faq_page
- features/profile/repository_profile
- features/profile/view_profile
- features/sib/sib_app
- features/sib/sib_repository
- features/sib/sib_web
- features/transaction/bloc/bloc_transaction
- features/transaction/repository_transaction
- features/transaction/view_transaction
- features/welcome_screens/view/welcome_screen
- features/welcome_screens/view/welcome_view
- features/welcome_screens/view/widgets/on_boarding_widget
- helper_widgets/auth_utils
- helper_widgets/dob_formatter
- helper_widgets/edit_loan_dialog
- helper_widgets/empty_state_view
- helper_widgets/fetched_overlay
- helper_widgets/fetching_animation
- helper_widgets/fetching_overlay
- helper_widgets/fund_utils
- helper_widgets/funds_merger
- helper_widgets/lender_card
- lamf_sdk
- localization/en_US
- localization/hi_IN
- localization/localization_service
- main
- models/authentication/otp_response_model
- models/authentication/otp_verify_response_model
- models/funds/funds_detail_model
- models/funds/lender_eligible_funds_model
- models/funds/lender_model
- models/funds/mf_details_response_model
- models/funds/pledge_mf_response
- models/funds/pledgeable_model
- models/kyc/kyc_response
- models/kyc/kyc_webhook_response
- models/pan_verification/otp_verify_model
- models/pan_verification/pan_otp_response_model
- models/pan_verification/pan_verify_response_model
- models/rta_otp/rta_otp_request_model
- models/rta_otp/rta_otp_response_model
- models/statement/client_statement_response
- models/statement/holding_statement_response
- utils/border_radius
- utils/colors
- utils/constants
- utils/dimens
- utils/enum_converter
- utils/enums
- utils/extensions
- utils/methods/apis
- utils/methods/flavor
- utils/methods/input_formatter
- utils/methods/preferences
- utils/methods/socket
- utils/models/model_redirect
- utils/models/model_response
- utils/padding
- utils/routers
- utils/strings
- utils/styles
- utils/utils
- utils/widgets/internet_alert
- utils/widgets/snack_bar