Skip to content

[google_maps_flutter] The width of polyline changes #36754

@coil-code

Description

@coil-code

Steps to Reproduce

The polyline is created with width specified as constant:

return Polyline(
  polylineId: PolylineId(identifier),
  color: color,
  jointType: JointType.round,
  width: 6,
  points: coordinates,
);

However, when GoogleMap widget gets updated by changing markers, the width of the polyline is changing too.

First it looks:

After update it starts looking:

The second one is how I think it should look. On iOS the width doesn't change and looks like on the second screenshot.

Logs

flutter doctor -v
[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F132, locale ru-RU)
    • Flutter version 1.7.8+hotfix.3 at /Users/vladimir/Documents/Work/Flutter
    • Framework revision b712a172f9 (2 weeks ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/vladimir/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.3, Build version 10G8
    • CocoaPods version 1.7.3

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[!] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.36.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.2.0

[✓] Connected device (2 available)
    • SM A510F          • 3300bda5afc2b243                         • android-arm • Android 7.0 (API 24)
    • iPhone (Aliaksei) • a0910a3080ce779e4a0367c59f66d4c49ea41ba5 • ios         • iOS 12.1.2

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions