Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 1.54 KB

README.md

File metadata and controls

37 lines (32 loc) · 1.54 KB

Example App for LeanCloud flutter plugin

Getting Started

Setup Leancloud Data

  • Create an Class named DemoObject
  • Set ACL to unlimited (无限制). (This is important because if the Class is limited, we can't update or delete any object. It's not a bug, it's leancloud design for security.)

Setup AppID and AppKey

"Oh, I don't have an appId or an appKey." Please click here

  • open example/lib/main.dart file.
  • replace YOUR_APP_ID to your appId.
  • replace YOUR_APP_KEY to your appKey.

Android

According Flutter document

  • Run flutter build command
cd example
flutter build apk
  • Launch Android Studio.
  • Select Import project in Welcome to Android Studio dialog, or select File > New > Import Project… in the menu, and select the example/android/build.gradle file.
  • In the Gradle Sync dialog, select OK.
  • In the Android Gradle Plugin Update dialog, select Don’t remind me again for this project.
  • Run this example app from Android Studio by pressing the ▶ button.

iOS

According Flutter document

  • Run flutter build command.
cd example
flutter build ios --no-codesign
  • Launch Xcode.
  • Select File > Open, and select the example/ios/Runner.xcworkspace file.
  • Run this example app by pressing the ▶ button.