phyllo_connect 0.1.15
phyllo_connect: ^0.1.15 copied to clipboard
Phyllo Connect is a quick and secure way to connect work platforms via Phyllo in your app.
phyllo_connect #
Phyllo Connect is a quick and secure way to connect work platforms via Phyllo in your app. Supports: iOS, Android.
Usage #
To use this plugin, add phyllo_connect
as a dependency in your pubspec.yaml file.
Example #
Replace your
import 'package:phyllo_connect/phyllo_connect.dart';
class Configs {
Configs._();
static const String clientId = '<client id here>';
static const String clientSecret = '<client secret here>';
static const PhylloEnvironment env = PhylloEnvironment.development; //set phyllo environment
}
import 'package:flutter/material.dart';
import 'package:phyllo_connect/phyllo_connect.dart';
import 'package:phyllo_connect_example/client/phyllo_repository.dart';
import 'package:phyllo_connect_example/constants/configs.dart';
//Too Lunch the sdk here it will method
void _launchSdk(String workPlatformId) {
PhylloConfig config = PhylloConfig(
clientDisplayName: clientDisplayName,
environment: Configs.environment,
userId: _userId!,
token: _token!,
workPlatformId: workPlatformId,
);
PhylloConnect.initialize(config);
PhylloConnect.open();
}