countries_world_map
1.3.0, released 3 years ago by simplewidgets.dev
Customizable world and country maps using CustomPainter for Flutter.
What it does
Provides a widget to display world maps or specific country maps with customizable colors per region. It offers tap and hover callbacks that return area details, IDs, and names.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to visualize data geographically using custom colors for countries or states
- You want a lightweight vector-based map instead of a full native map SDK
Skip it when
- You need live GPS geolocation, routing, or interactive tile layers
- You need to render a very high number of separate map widgets simultaneously
Strengths
- Fully customizable colors per country or state using ISO codes
- Built-in tap and hover callbacks with area details
- Includes a RepaintBoundary wrapper for performance
Weaknesses
- Large vector maps can be heavy and expensive to repaint
- ID structures can differ between different country maps
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
No special native configuration or permissions are required.
SimpleMap(
instructions: SMapWorld.instructions,
defaultColor: Colors.grey,
colors: SMapWorldColors(
uS: Colors.green,
cN: Colors.green,
ru: Colors.green,
).toMap(),
callback: (id, name, tapdetails) {
print(id);
},
)Alternatives
Packages that do the same job and could replace countries_world_map.
- flutter_map
Choose flutter_map if you need tile-based interactive map layers, markers, and geolocation rather than static vector country shapes.
90Compare
Works with
Packages commonly used together with countries_world_map: ones it builds on, ones built on it, and its own family.