Skip to content

[BUG] vector_map_tiles_pmtiles: Incompatibility with protobuf 6.0.0 (PbList error) #109

@mwoerner

Description

@mwoerner

Package

vector_map_tiles_pmtiles

Bug Description

This issue is about the package: vector_map_tiles_pmtiles

When building a FlutterFlow project locally for iOS, the build fails due to an incompatibility between protobuf 6.0.0 and the current vector tile dependency chain.

The error originates from vector_tile (2.0.1), which is not compatible with protobuf 6.x and still uses deprecated PbList constructors.

Since vector_map_tiles_pmtiles depends on this chain, it currently blocks using PMTiles in environments where protobuf 6.x is enforced.

Additional context:

  • FlutterFlow enforces protobuf 6.0.0
  • vector_tile 2.0.1 is not compatible with protobuf 6.x
  • Newer versions of vector_tile and vector_tile_renderer already exist

Would it be possible to update vector_map_tiles_pmtiles to support the newer dependency chain?

Happy to help test a fix if needed.

Steps to Reproduce

  1. Create a FlutterFlow project using:

    • flutter_map
    • vector_map_tiles
    • vector_map_tiles_pmtiles
  2. Build the project locally for iOS using FlutterFlow

  3. Ensure protobuf 6.0.0 is used (FlutterFlow enforces this)

  4. Build fails with protobuf-related errors in vector_tile.pb.dart

Expected Results

The project should build successfully with protobuf 6.0.0.

vector_map_tiles_pmtiles should be compatible with the latest vector_map_tiles / vector_tile_renderer / vector_tile dependency chain.

Actual Results

Build fails with the following error:

Error: Couldn't find constructor 'PbList'

This occurs in vector_tile.pb.dart and is caused by vector_tile 2.0.1 being incompatible with protobuf 6.0.0.

Code Sample

FlutterMap(
  children: [
    VectorTileLayer(
      tileProviders: TileProviders({
        'protomaps': PmTilesVectorTileProvider(
          url: 'https://your-domain/tiles.pmtiles',
        ),
      }),
    ),
  ],
)

Platforms

iOS

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions