ArcGIS Maps SDK for Flutter offers an open source toolkit that contains ready-made UI components to simplify the development of mapping and GIS apps in Flutter. Available components include:
-
Authenticator - A widget that handles authentication challenges. It will display a user interface when network and ArcGIS authentication challenges occur.
-
Compass - A widget that visualizes the current rotation of the map or scene and allows the user to reset the rotation to north by tapping on it.
-
OverviewMap - A small inset map displaying a representation of the current viewpoint of the target map or scene.
-
PopupView - A widget that will display a pop-up for an individual feature. This includes showing the feature's title, attributes, custom description, media, and attachments.
Install from pub.dev
The ArcGIS Maps SDK for Flutter Toolkit can be integrated into your Flutter project in VS Code using Flutter's package repository, pub.dev. First, you'll need to install the arcgis
package by following steps in Flutter package repository in the install and set up topic. Next, follow these steps to work with the Toolkit:
VS Code
-
Open your Flutter project in VS Code.
-
Go to View > Terminal.
-
Add the
arcgis
package as a project dependency._maps _toolkit Use dark colors for code blocks Copy dart pub add arcgis_maps_toolkit
dart pub add
adds thearcgis
package to the_maps _toolkit pubspec.yaml
as a dependency, and then retrieves the dependency. -
Update to the latest compatible versions of all the dependencies by executing the following command:
Use dark colors for code blocks Copy flutter pub upgrade
Executing this command will update only the packages that your app depends upon.
Add the following import statement to any of your dart code (.dart) files to start using the provided widgets:
import 'package:arcgis_maps_toolkit/arcgis_maps_toolkit.dart';
Depending on your application requirements, you might need to make Platform specific configuration changes. Consult the documentation to help determine the changes you'll need for your application when using the Toolkit.
Resources
Issues
Find a bug or want to request a new feature? Please let us know by submitting an issue.