Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
612722c
add google_maps_flutter_platform_interface
cylyl Mar 4, 2020
b979907
removed unused_local_variable
cylyl Mar 4, 2020
942a333
format
cylyl Mar 4, 2020
b083e31
format
cylyl Mar 4, 2020
77c3e78
format#
cylyl Mar 4, 2020
6693617
update CHANGELOG
cylyl Mar 4, 2020
e186406
Move MethodChannel code to MethodChannelGoogleMapsFlutter
cylyl Mar 5, 2020
75d8376
Update dependencies
cylyl Mar 5, 2020
47180d6
add buildView method
cylyl Mar 9, 2020
2140abb
update pubspec
cylyl Mar 9, 2020
2908711
bugs fix
cylyl Mar 20, 2020
d1498be
Some adjustments to the PR.
ditman Mar 22, 2020
29fd8c6
dartfmt -w .
ditman Mar 22, 2020
130b187
Expose the MethodChannel so e2e tests are happy.
ditman Mar 23, 2020
aa883eb
Move platform into src so we can create a barrel file to export stuff.
ditman Mar 24, 2020
62dfefa
Create barrel file to export only certain things from src
ditman Mar 24, 2020
eb89c8d
Adjust imports in platform interface
ditman Mar 24, 2020
e864e05
Move LatLng and LagLngBounds to the platform interface package. Reexp…
ditman Mar 24, 2020
a2a4f6f
Move ui.dart to platform_interface. Expose .toJson so it can be used …
ditman Mar 24, 2020
87ae109
Move Polygon and Polyline, and all the related types.
ditman Mar 24, 2020
fca65f7
Move Circle and Marker files to platform_interface.
ditman Mar 24, 2020
891f7d0
Move callbacks, camera and screen cordinate to platform interface. Ex…
ditman Mar 25, 2020
add2755
Adapt controller and map widget to new API. Expose _toX methods as to…
ditman Mar 25, 2020
117c5fa
dartfmt -w .
ditman Mar 25, 2020
bde0b79
Use EntityUpdate classes in the corresponding platform interface
ditman Mar 25, 2020
5dbee85
Modify the platform interface in methods that return map boundaries to
ditman Mar 25, 2020
626b551
Utilize MarkerId instances instead of Strings in the relevant methods.
ditman Mar 25, 2020
41f9915
Return futures from the platform directly, no need to await for those.
ditman Mar 26, 2020
9cb7a45
Make mapId a mandatory parameter on the interface methods.
ditman Mar 27, 2020
2e6c763
Add the 11 native event Streams to the platform interface.
ditman Mar 27, 2020
1cb5fc2
Connect to the streams coming from the platform interface.
ditman Mar 27, 2020
920f2de
Ensure the streams are of the right type.
ditman Mar 27, 2020
071eded
Use stream_transform package to get the whereType extension.
ditman Mar 27, 2020
90515de
Final vars should be final
ditman Mar 27, 2020
75020e8
dartfmt -w .
ditman Mar 28, 2020
d5ba662
Rename test according to what it tests.
ditman Mar 31, 2020
a4e46b2
buildView document
cylyl Mar 31, 2020
a81985a
Move CameraPositionCallback to the platform interface
ditman Mar 31, 2020
0278f99
Move takeSnapshot to platform_interface.
ditman Apr 1, 2020
48cd472
Set google_maps_flutter_platform_interface version to 1.0.0
ditman Apr 1, 2020
f21fb98
Revert changes to the example.
ditman Apr 3, 2020
0eba0f9
Remove .gitignore from example dir
ditman Apr 3, 2020
0aa8f86
Appease the analyzer.
ditman Apr 3, 2020
0143254
Appease analyze some more.
ditman Apr 3, 2020
e2113b1
Rename _controller to _mapEventStreamController
ditman Apr 3, 2020
e04081c
Update some docs on the platform
ditman Apr 3, 2020
7774184
Document MapEvent constructors.
ditman Apr 3, 2020
97ebb01
Document method_channel class
ditman Apr 4, 2020
e7179b5
Revert all changes to core plugin.
ditman Apr 7, 2020
3ccc6c0
Exclude google_maps platform interface and web from the build_all_plu…
ditman Apr 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Document method_channel class
  • Loading branch information
ditman committed Apr 7, 2020
commit 97ebb01e48b8e4e4a9a22226df33ea313258b56f
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ import 'package:flutter/gestures.dart';
import 'package:google_maps_flutter_platform_interface/google_maps_flutter_platform_interface.dart';
import 'package:stream_transform/stream_transform.dart';

/// An implementation of [GoogleMapsFlutterPlatform] that uses method channels.
/// An implementation of [GoogleMapsFlutterPlatform] that uses [MethodChannel] to communicate with the native code.
///
/// The `google_maps_flutter` plugin code itself never talks to the native code directly. It delegates
/// all those calls to an instance of a class that extends the GoogleMapsFlutterPlatform.
///
/// The architecture above allows for platforms that communicate differently with the native side
/// (like web) to have a common interface to extend.
///
/// This is the instance that runs when the native side talks to your Flutter app through MethodChannels,
/// like the Android and iOS platforms.
class MethodChannelGoogleMapsFlutter extends GoogleMapsFlutterPlatform {
// Keep a collection of id -> channel
// Every method call passes the int mapId
Expand Down