google_maps_pagination 0.0.3 copy "google_maps_pagination: ^0.0.3" to clipboard
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

7
likes
70
pub points
0%
popularity

Publisher

verified publishermatheer.com

Pagination with pageView and markers throw google map

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, google_maps_flutter

More

Packages that depend on google_maps_pagination