- 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.)
"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.
According Flutter document
- Run flutter build command
cd example
flutter build apk
- Launch Android Studio.
- Select
Import project
inWelcome to Android Studio
dialog, or selectFile > New > Import Project…
in the menu, and select theexample/android/build.gradle
file. - In the
Gradle Sync
dialog, selectOK
. - In the
Android Gradle Plugin Update
dialog, selectDon’t remind me again for this project
. - Run this example app from Android Studio by pressing the ▶ button.
According Flutter document
- Run flutter build command.
cd example
flutter build ios --no-codesign
- Launch Xcode.
- Select
File > Open
, and select theexample/ios/Runner.xcworkspace
file. - Run this example app by pressing the ▶ button.