leancloud_flutter_plugin 0.0.5 copy "leancloud_flutter_plugin: ^0.0.5" to clipboard
leancloud_flutter_plugin: ^0.0.5 copied to clipboard

discontinuedreplaced by: leancloud_official_plugin

LeanCloud flutter plugin by Luna Gao. This is a third-party leancloud plugin package. Committed to becoming a plugin consistent with the official SDK usage.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:leancloud_flutter_plugin/leancloud_flutter_plugin.dart';
import 'list_screen.dart';

void main() {
  initPlatformState();
  runApp(MyApp());
}

void initPlatformState() {
  LeancloudFlutterPlugin leancloudFlutterPlugin =
      LeancloudFlutterPlugin.getInstance();
  String appId = "EnJt7BXlJ2Oc3nvk23lN39jN-gzGzoHsz";
  String appKey = "Iao5JCNRyH99m9B24G2RLQc8";
  leancloudFlutterPlugin.setLogLevel(LeancloudLoggerLevel.DEBUG);
  leancloudFlutterPlugin.setRegion(LeancloudCloudRegion.NorthChina);
  leancloudFlutterPlugin.setServer(
      LeancloudOSService.API, "https://api.maomishen.com");
  leancloudFlutterPlugin.initialize(appId, appKey);
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Leancloud Plugin example app',
      home: ListScreen(),
    );
  }
}
1
likes
35
pub points
0%
popularity

Publisher

verified publishermaomishen.com

LeanCloud flutter plugin by Luna Gao. This is a third-party leancloud plugin package. Committed to becoming a plugin consistent with the official SDK usage.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on leancloud_flutter_plugin