Skip to content

New Property allowPanning#766

Merged
johnpryan merged 7 commits intofleaflet:masterfrom
escamoteur:master
Jan 8, 2021
Merged

New Property allowPanning#766
johnpryan merged 7 commits intofleaflet:masterfrom
escamoteur:master

Conversation

@escamoteur
Copy link
Copy Markdown
Contributor

Added a new property to be able to disable panning while still keep the View interactive and added a safety check on PolylinePainter

@escamoteur
Copy link
Copy Markdown
Contributor Author

@johnpryan could you please merge this?

@johnpryan
Copy link
Copy Markdown
Collaborator

It looks like there's still a few analysis errors:

20.30s$ ~/flutter/bin/cache/dart-sdk/bin/dartanalyzer .
Analyzing flutter_map...
  error • The named parameter 'colors' isn't defined. • example/lib/pages/animated_map_controller.dart:93:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/animated_map_controller.dart:103:30 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/home.dart:19:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/home.dart:30:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/home.dart:41:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/live_location.dart:108:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/map_controller.dart:51:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/map_controller.dart:61:30 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/marker_anchor.dart:54:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/marker_anchor.dart:64:30 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/on_tap.dart:51:13 • undefined_named_parameter
  error • The named parameter 'colors' isn't defined. • example/lib/pages/on_tap.dart:66:30 • undefined_named_parameter
12 errors found.

nickoe and others added 3 commits January 6, 2021 12:46
* Add new required environment spec

Otherwise flutter throws an error and abort building.

Fixes fleaflet#774

* Update usage of API for text colors

As suggested by joselbr2099 the API have changed in flutter. Replace
only colors parameter with textColor.

Fixes fleaflet#774
* remove mbtiles and sqlflite dependency

* remove mbtiles tile provider + sqflite dependency

fixes fleaflet#786

* remove example/test/widget_test
@escamoteur
Copy link
Copy Markdown
Contributor Author

Hi @johnpryan I pulled in the latest changes and I now only see some warnings concnering Scaffold messenger.

@johnpryan
Copy link
Copy Markdown
Collaborator

What flutter channel are you using? The Travis check uses stable.

I think you need to run dartfmt to make the Travis check green.

@escamoteur
Copy link
Copy Markdown
Contributor Author

escamoteur commented Jan 6, 2021 via email

@escamoteur
Copy link
Copy Markdown
Contributor Author

yep, one file wasn't formated properly

..strokeJoin = StrokeJoin.round
..blendMode = BlendMode.dstOut;
Paint filterPaint;
if (polylineOpt.borderColor != null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that's from an much older commit. I recall that I got null reference exceptions when borderColor wasn't set

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you see any problem with that?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, just harder to review :)

canvas.saveLayer(rect, Paint());
if (borderPaint != null) {
_paintLine(canvas, polylineOpt.offsets, borderPaint);
if (filterPaint != null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the follow up from the above

@johnpryan johnpryan merged commit 15a7937 into fleaflet:master Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants