This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Support Hybrid Composition through the GoogleMaps Widget #4082
Merged
+91
−15
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b17d1dc
start
bparrishMines 82c4614
change to hybrid composition in example
bparrishMines 7b6f801
UPdate readme
bparrishMines 736c073
Merge branch 'master' of github.com:flutter/plugins into android_maps
bparrishMines f6631b4
update README and remove unnecessary line
bparrishMines 50b548e
Merge branch 'master' of github.com:flutter/plugins into android_maps
bparrishMines 944d965
use buildViewWithTextDirection by default
bparrishMines e345f3a
remove hash
bparrishMines 1809e66
add default value if no directionality ancestor
bparrishMines f504ffc
remove mactro
bparrishMines be87b94
change text direction to layout direction
bparrishMines cf87583
Merge branch 'master' of github.com:flutter/plugins into android_maps
bparrishMines d907845
create android settings class
bparrishMines 58c3028
update readme
bparrishMines 0c26d6c
Update google_map.dart
bparrishMines 86f965c
Merge branch 'master' of github.com:flutter/plugins into android_maps
bparrishMines 35a8186
Merge branch 'master' of github.com:flutter/plugins into android_maps
bparrishMines File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
UPdate readme
- Loading branch information
commit 7b6f8019473e4b48f24f8ce8f33f0427fd982a73
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,19 @@ This means that app will only be available for users that run Android SDK 20 or | |
| android:value="YOUR KEY HERE"/> | ||
| ``` | ||
|
|
||
| #### Hybrid Composition | ||
|
|
||
| To use Hybrid Composition to render the `GoogleMap` widget on Android. Set the | ||
|
||
| `MethodChannelGoogleMapsFlutter.useAndroidViewSurface` to true. | ||
bparrishMines marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```dart | ||
| if (defaultTargetPlatform == TargetPlatform.android) { | ||
| final MethodChannelGoogleMapsFlutter platform = | ||
| GoogleMapsFlutterPlatform.instance as MethodChannelGoogleMapsFlutter; | ||
| platform.useAndroidViewSurface = true; | ||
| } | ||
| ``` | ||
|
|
||
| ### iOS | ||
|
|
||
| Specify your API key in the application delegate `ios/Runner/AppDelegate.m`: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: s/. Set the/, set/