![]() In the newer versions this should be fixed. In version 0.0.7 and before the size of the map would cause jank and compile errors. If you change a Country Color and call SetState() the widget will repaint. That's why the default Widget uses a RepaintBoundry to prevent it from unnecessary repaints. Some of the maps are really big, so (re)building the widget can be expensive. Set the WorldMap to 92% of the available width to make it look more centered. In the example the InteractiveViewer has a maxScale of 75. Using InteractiveView enables you to zoom in and out on specific countries as done in the online example. Wrap the WorldMap in an InteractiveViewer widget. When pressing a region you might want to show a bottomsheet containing more details.Īlthough it it possible to add multiple maps to your app, please read more about the performance before proceeding. This packages can be used to visualize data by adding different shades of colors. Or open the online example to see the ID's in the right list. ![]() When adding a map check how the ID is returned. The Color class and the instructions should always match, but there might be differences between different countries. ID structure might be different between countries. Details of what area is being touched, giving you the ID, name and tapdetails US: een, // This makes USA greenĬN: een, // This makes China green Matching class to specify custom colors for each area. String of instructions to draw the map. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |