phyllo_connect 0.1.15 copy "phyllo_connect: ^0.1.15" to clipboard
phyllo_connect: ^0.1.15 copied to clipboard

outdated

Phyllo Connect is a quick and secure way to connect work platforms via Phyllo in your app.

phyllo_connect #

pub package

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();
  }

4
likes
0
pub points
63%
popularity

Publisher

unverified uploader

Phyllo Connect is a quick and secure way to connect work platforms via Phyllo in your app.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on phyllo_connect