Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard moves the markers #765

Closed
NonGrate opened this issue Oct 27, 2020 · 5 comments
Closed

keyboard moves the markers #765

NonGrate opened this issue Oct 27, 2020 · 5 comments

Comments

@NonGrate
Copy link

NonGrate commented Oct 27, 2020

I've got the issue when opened keyboard shifts the markers without updating the map.

Expected outcome: Markers are not moved,
Actual outcome: Markers are shifted up and are pointing to the wrong locations until map is moved or zoomed.

Initial image: https://ibb.co/5xNRPGD
Actual image: https://ibb.co/hW8h6LZ

Expected image: https://ibb.co/8xHkJJ8

To reproduce:
Create default flutter project and replace _MyHomePageState.build() method with this one:

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Column(
        children: [
          TextField(),
          Expanded(
            child: FlutterMap(
              options: new MapOptions(
                center: new LatLng(51.5, -0.09),
                zoom: 13.0,
              ),
              layers: [
                new TileLayerOptions(
                    urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
                    subdomains: ['a', 'b', 'c']
                ),
                new MarkerLayerOptions(
                  markers: [
                    new Marker(
                      width: 80.0,
                      height: 80.0,
                      point: new LatLng(51.5, -0.09),
                      builder: (ctx) =>
                      new Container(
                        child: new Icon(Icons.location_on, size: 64,),
                      ),
                    ),
                  ],
                ),
              ],
            ),
          ),
        ],
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }

Shouldn't markers use distance from top side of the screen rather than from the bottom to avoid such behavior?

Thank you!

@a-yarohovich
Copy link

a-yarohovich commented Oct 28, 2020

I have the same problem.

@moovida
Copy link
Contributor

moovida commented Oct 28, 2020

This quite interesting. I have the same issue also with lines and polygons. But I can't imagine I didn't notice this before. Is it possible that this is a regression? I am puzzled.

@maRci002
Copy link
Contributor

Duplicate of #736, and #719 fixes it.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Mar 21, 2021
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

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

No branches or pull requests

4 participants