map_themes
1.0.0, released a year ago by nkpozimarcel.com
Provides customizable map themes and preset styles for map implementations.
What it does
A Flutter plugin that supplies built-in and custom map themes alongside persistence capabilities for user preferences. It offers widgets and managers to style map components dynamically, currently supporting Google Maps.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to easily add dark, night, or retro themes to Google Maps in Flutter.
- You need automatic persistence for user map theme selections.
- You want pre-built UI selectors for changing map styles.
Skip it when
- You are using map engines other than Google Maps (currently unsupported by this plugin).
- You require complex vector styling outside of standard map JSON styles.
Strengths
- Includes 5 built-in themes (Standard, Dark, Night, Night Blue, Retro).
- Supports auto-persistence of user theme choices via shared_preferences.
- Provides flexible usage patterns: all-in-one widget, separate selector, and programmatic manager.
Weaknesses
- Currently restricted to Google Maps implementation.
- Limited to JSON-based map styling.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires setting up Google Maps API keys on Android and iOS following the standard google_maps_flutter platform setup guides.
MapThemeWidget(
builder: (mapStyle) {
return GoogleMap(
initialCameraPosition: CameraPosition(
target: LatLng(37.4219983, -122.084),
zoom: 14.0,
),
style: mapStyle.isEmpty ? null : mapStyle,
);
},
)Alternatives
Packages that do the same job and could replace map_themes.
- google_maps_flutter
If you prefer to implement manual map styling and custom JSON themes directly without an auxiliary theming package.
90Compare
Works with
Packages commonly used together with map_themes: ones it builds on, ones built on it, and its own family.