google_maps_pagination 0.0.3 google_maps_pagination: ^0.0.3 copied to clipboard
Pagination with pageView and markers throw google map
Pagination markers and cards on map with page view #
Features #
Pagination throw google map smoothly using page perPage or skip and limit
Getting started #
no pre requirements required
Usage #
read example
PaginationMap<Item>(
initialCameraPosition: MyApp.initialCameraPosition,
mapController: _mapController,
setMapController: (value) {
setState(() {
_mapController = value;
});
},
currentUserLocation: myFakeLocation(),
pageViewController: _pageController,
onItemsChanged: (skip, cameraPosition) {
return getFakeItems(skip, cameraPosition);
},
markerLabelFormatter: (value) {
return "$value USD";
},
selectedItemId: _selectedItemId,
onSelectedItemChanged: (value) {
setState(() {
_selectedItemId = value;
});
},
pageViewItemBuilder: (BuildContext context, Item item, int index) {
return ItemListTile(item: item, index: index);
},
);
Additional information #
Drag map will change camera position and click next or previous will change pagination