mapbox / mapbox/mapbox-maps-flutter
Expose public API to open native attribution dialog programmatically (for custom attribution buttons)
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
I am using `mapbox_maps_flutter` and need to support a custom in-app attribution button (larger hit target / custom UI layout), while still opening the **native Mapbox attribution dialog** (including telemetry controls where applicable).
At the moment, there does not seem to be a reliable/public Flutter API for this workflow. I can configure attribution ornament visibility/position, but cannot explicitly trigger the native dialog from a custom button.
## Why this matters
- Apps frequently need custom controls for accessibility and usability (larger touch areas, custom placement, integrated control panels).
- Attribution still needs to be available for compliance.
- We also need to preserve native attribution behavior and telemetry settings
## Current behavior
- `mapbox_maps_flutter` exposes attribution settings, but no documented method like:
- `mapboxMap.showAttributionDialog()`
- `mapboxMap.openAttribution()`
- Bridging from host app native code is fragile and version-dependent (ornament internals are not a stable public surface).
Please expose a public, stable API in `mapbox_maps_flutter` to open the native attribution flow programmatically from app code, for example:
```dart
await mapboxMap.showAttributionDialog();
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing attribution ornament settings and the platform-specific native attribution flow in this Flutter plugin. Trace how Dart APIs reach the native Mapbox SDKs, then define and document a public method whose completion criteria include opening the native dialog and preserving applicable telemetry controls on supported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100