lori_sdk 0.1.3 copy "lori_sdk: ^0.1.3" to clipboard
lori_sdk: ^0.1.3 copied to clipboard

outdated

A Flutter package to access Neomode's API (LORI). The package encapsulates most of the complexity and provide an easy way to connect to the best omnichannel platform.

example/main.dart

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:lori_sdk/data/lori_api.dart';

void main() {
  // SDK init
  LoriApi.init(
      '<LORI_API_URL>',
      '<LORI_CLIENT_ID>',
      '<LORI_CLIENT_SECRET>',
      1,
      Platform.operatingSystem,
      Platform.operatingSystemVersion);
  // Start running the app
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'LORI SDK Sample',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'LORI SDK Sample'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Look inside the main method to find the sample :)',
            ),
          ],
        ),
      ), // T
    );
  }
}
1
likes
0
pub points
14%
popularity

Publisher

verified publisherneomode.com.br

A Flutter package to access Neomode's API (LORI). The package encapsulates most of the complexity and provide an easy way to connect to the best omnichannel platform.

Homepage

License

unknown (LICENSE)

Dependencies

cloud_firestore, dio, firebase_performance, flutter, flutter_phoenix, http, intl, json_annotation, path, shared_preferences, simple_rsa, sqflite, validators

More

Packages that depend on lori_sdk