tcmpp_flutter_petalmap 2.0.0 tcmpp_flutter_petalmap: ^2.0.0 copied to clipboard
Petal map support for TCMPP Flutter plugin
Petal map support for TCMPP Flutter Plugin #
Petal map support extension for TCMPP Flutter plugin. Provide map related API implementation for mini-program on Huawei device;
Getting Started #
- Add dependency Open the pubspec.yaml file located inside the app folder, and add tcmpp_flutter_petalmap: ${version} under dependencies.
dependencies:
...
tcmpp_flutter_petalmap: ^2.0.0
...
- Install dependency
- From the terminal: Run flutter pub get.
- From VS Code: Click Get Packages located in right side of the action ribbon at the top of pubspec.yaml indicated by the Download icon.
- From Android Studio/IntelliJ: Click Pub get in the action ribbon at the top of pubspec.yaml.
For details how to add Flutter plugins or packages, see Use packages & plugins
- Add map API Key
Open and edit file android > app > src > main > AndroidManifest.xml, add meta-data tag and put your Huawei map API key here:
<application>
...
<meta-data
android:name="HuaweiApiKey"
android:value="(YOUR_API_KEY)" />
...
</application>