Issue 1:
draw a line between two coordinates inside map , how to show multiple markers with fit zoom levell in map

Issue 2:
Steps to Reproduce

Create a TabBarView with 3 RefreshIndicators children.

Run the app and after changing tabs a few times (5 to 10 times) you get a " Multiple widgets used the same GlobalKey." error.

@override
Widget build(BuildContext context) {
final GlobalKey<RefreshIndicatorState> _RIKey1 = new GlobalKey<RefreshIndicatorState>();
final GlobalKey<RefreshIndicatorState> _RIKey2 = new GlobalKey<RefreshIndicatorState>();
final GlobalKey<RefreshIndicatorState> _RIKey3 = new GlobalKey<RefreshIndicatorState>();

debugPrint(_RIKey1.toString());
debugPrint(_RIKey2.toString());
debugPrint(_RIKey3.toString());
return new Scaffold(
body: new DefaultTabController(
length: 3,
child: new Scaffold(
appBar: new AppBar(
bottom: new TabBar(
tabs: [
new Tab(icon: new Icon(Icons.view_list)),
new Tab(icon: new Icon(Icons.hotel)),
new Tab(icon: new Icon(Icons.assessment)),
],
),
title: new Text('Data'),
),
body: new TabBarView(
children: [
new RefreshIndicator(
key: _RIKey1,
onRefresh: _actualizoData,
child: new ListView.builder(
padding: new EdgeInsets.only(top: 5.0),
itemCount: linea_reservas.length * 2,
itemBuilder: (BuildContext context, int position) {
if (position.isOdd) return new Divider();
final index = position ~/ 2;
return _buildRow(index);
}),
),
new RefreshIndicator(
key: _RIKey2,
onRefresh: _actualizoData,
child: new ListView.builder(
padding: new EdgeInsets.only(top: 8.0),
itemCount: linea_inouthouse.length * 2,
itemBuilder: (BuildContext context, int position) {
if (position.isOdd) return new Divider();
final index = position ~/ 2;
return _buildRowInOutHouse(index);
}),
),
new RefreshIndicator(
key: _RIKey3,
onRefresh: _actualizoData,
child: new ListView.builder(
padding: new EdgeInsets.only(top: 5.0),
itemCount: linea_ocupacion.length * 2,
itemBuilder: (BuildContext context, int position) {
if (position.isOdd) return new Divider();
final index = position ~/ 2;
return _buildRowOcupacion(index);
}),
),
],
),
),
),
);
}

Please tell us what you were doing and what went wrong. If you are running flutter tools from the command line, please try adding the -v or --verbose option to gather more information.

If the problem is with your application's rendering, please attach a screenshot and any relevant source code.

If you are getting an exception in the logs, and your code is implicated in the first few frames, then please include the source code for the functions involved.

Logs

I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#d6dbe]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#91b52]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#e4401]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#de378]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#2accf]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#a5168]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#0c05e]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#75aa5]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#a8dd6]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#11fdf]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#6fda6]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#f486c]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#09ebf]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#5ea61]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#914b7]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#e2168]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#a636b]
I/flutter ( 3245): [LabeledGlobalKey<RefreshIndicatorState>#9b57f]
I/flutter ( 3245): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 3245): The following assertion was thrown building NotificationListener<KeepAliveNotification>:
I/flutter ( 3245): Multiple widgets used the same GlobalKey.
I/flutter ( 3245): The key [LabeledGlobalKey<RefreshIndicatorState>#9b57f] was used by multiple widgets. The parents of
I/flutter ( 3245): those widgets were:
I/flutter ( 3245): - RepaintBoundary-[<[LabeledGlobalKey<RefreshIndicatorState>#9b57f]>](renderObject:
I/flutter ( 3245): RenderRepaintBoundary#38cd2 DETACHED)
I/flutter ( 3245): - RepaintBoundary-[<[LabeledGlobalKey<RefreshIndicatorState>#9b57f]>](renderObject:
I/flutter ( 3245): RenderRepaintBoundary#44883 NEEDS-LAYOUT NEEDS-PAINT)
I/flutter ( 3245): A GlobalKey can only be specified on one widget at a time in the widget tree.
I/flutter ( 3245): When the exception was thrown, this was the stack:
I/flutter ( 3245): #0 GlobalKey._debugReserveFor.<anonymous closure> (package:flutter/src/widgets/framework.dart:164:11)
I/flutter ( 3245): #1 GlobalKey._debugReserveFor (package:flutter/src/widgets/framework.dart:182:6)
I/flutter ( 3245): #2 Element.updateChild.<anonymous closure> (package:flutter/src/widgets/framework.dart:2664:13)
I/flutter ( 3245): #3 Element.updateChild (package:flutter/src/widgets/framework.dart:2667:6)
I/flutter ( 3245): #4 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 3245): #5 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 3245): #6 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 3245): #7 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 3245): #8 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 3245): #9 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 3245): #10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 3245): #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 3245): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 3245): #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 3245): #14 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 3245): #15 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 3245): #16 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 3245): #17 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3938:11)
I/flutter ( 3245): #18 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 3245): #19 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 3245): #20 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 3245): #21 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 3245): #22 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 3245): #23 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11)
I/flutter ( 3245): #24 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 3245): #25 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 3245): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 3245): #27 SliverMultiBoxAdaptorElement.createChild.<anonymous closure> (package:flutter/src/widgets/sliver.dart:729:20)
I/flutter ( 3245): #28 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2205:19)
I/flutter ( 3245): #29 SliverMultiBoxAdaptorElement.createChild (package:flutter/src/widgets/sliver.dart:722:11)
I/flutter ( 3245): #30 RenderSliverMultiBoxAdaptor._createOrObtainChild.<anonymous closure> (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:254:23)
I/flutter ( 3245): #31 RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:1666:58)
I/flutter ( 3245): #32 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:740:15)
I/flutter ( 3245): #33 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1666:13)
I/flutter ( 3245): #34 RenderSliverMultiBoxAdaptor._createOrObtainChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:243:5)
I/flutter ( 3245): #35 RenderSliverMultiBoxAdaptor.addInitialChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:351:5)
I/flutter ( 3245): #36 RenderSliverFixedExtentBoxAdaptor.performLayout (package:flutter/src/rendering/sliver_fixed_extent_list.dart:169:12)
I/flutter ( 3245): #37 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter ( 3245): #38 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:285:13)
I/flutter ( 3245): #39 RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1008:12)
I/flutter ( 3245): #40 RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:932:20)
I/flutter ( 3245): #41 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445:7)
I/flutter ( 3245): #42 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:709:18)
I/flutter ( 3245): #43 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270:19)
I/flutter ( 3245): #44 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:622:13)
I/flutter ( 3245): #45 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter ( 3245): #46 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter ( 3245): #47 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter ( 3245): #48 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter ( 3245): #49 _invoke (dart:ui/hooks.dart:120:13)
I/flutter ( 3245): #50 _drawFrame (dart:ui/hooks.dart:109:3)
I/flutter ( 3245): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2209 pos 20: '_debugCurrentBuildTarget == context': is not true.
I/flutter ( 3245): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#44883 NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2209 pos 20: '_debugCurrentBuildTarget == context': is not true.
I/flutter ( 3245): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#b2936 NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 579 pos 16: 'indexOf(child) == index': is not true.
I/flutter ( 3245): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#44883 NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 579 pos 16: 'indexOf(child) == index': is not true.
I/flutter ( 3245): Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#44883 NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3480 pos 14: 'owner._debugCurrentBuildTarget == this': is not true.
I/flutter ( 3245): Another exception was thrown: The _ScaffoldLayout custom multichild layout delegate forgot to lay out the following children:

## flutter analyze
Analyzing C:\...
error - The constructor returns type 'dynamic' that isn't of expected type 'Widget' at test\widget_test.dart:14:29 - strong_mode_invalid_cast_new_expr
error - Undefined class 'MyApp' at test\widget_test.dart:14:33 - undefined_class
warning - This function declares a return type of 'Future<String>', but doesn't end with a return statement at lib\tabs.dart:34:3 - missing_return
warning - This function declares a return type of 'Future<String>', but doesn't end with a return statement at lib\tabs.dart:72:3 - missing_return
warning - This function declares a return type of 'Future<String>', but doesn't end with a return statement at lib\tabs.dart:112:3 - missing_return
warning - This function declares a return type of 'Future<Null>', but doesn't end with a return statement at lib\tabs.dart:161:3 - missing_return
lint - Name types using UpperCamelCase at lib\Linea_inouthouse.dart:2:7 - camel_case_types
lint - Name types using UpperCamelCase at lib\Linea_ocupacion.dart:1:7 - camel_case_types
lint - Name types using UpperCamelCase at lib\Linea_ultimasreservas.dart:1:7 - camel_case_types
lint - Name non-constant identifiers using lowerCamelCase at lib\login_page.dart:44:18 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:25:7 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:26:7 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:27:7 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:51:13 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:52:13 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:91:13 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:92:13 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:198:9 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:242:44 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:243:44 - non_constant_identifier_names
lint - Name non-constant identifiers using lowerCamelCase at lib\tabs.dart:244:44 - non_constant_identifier_names
hint - Unused import: 'package:smarthotelier/reserva.dart' at lib\login_page.dart:7:8 - unused_import
hint - Unused import: 'package:smarthotelier/config.dart' at lib\main.dart:3:8 - unused_import
hint - This method overrides a method annotated as @mustCallSuper in 'State', but does not invoke the overridden method at lib\tabs.dart:157:8 - must_call_super
24 issues found.
(Ran in 15.7s)

Flutter Doctor

[√] Flutter (Channel beta, v0.2.8, on Microsoft Windows [VersiÃ³n 10.0.16299.371], locale es-MX)

• Flutter version 0.2.8 at C:\Users\Alejandro\Flutter

• Framework revision b397406 (2 weeks ago), 2018-04-02 13:53:20 -0700

• Engine revision c903c21

• Dart version 2.0.0-dev.43.0.flutter-52afcba357

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)

• Android SDK at C:\Android\android-sdk

• Android NDK location not configured (optional; useful for native profiling support)

• Platform android-27, build-tools 27.0.3

• ANDROID_HOME = C:\Android\android-sdk

• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

• All Android licenses accepted.

[√] Android Studio (version 2.3)

• Android Studio at C:\Program Files\Android\Android Studio

• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[√] Android Studio (version 3.1)

• Android Studio at C:\Program Files\Android\Android Studio1

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] VS Code, 64-bit edition (version 1.21.1)

• VS Code at C:\Program Files\Microsoft VS Code

• Dart Code extension version 2.11.1

[√] Connected devices (1 available)

• Android SDK built for x86 • emulator-5554 • android-x86 • Android 6.0 (API 23) (emulator)

• No issues found!

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.