![]() ![]() IntelliJ IDEA Community Edition (version 2022.1.1) ![]() Android Studio at /Applications/Android Studio.app/Contents.Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome.Xcode at /Applications/Xcode.app/Contents/Developer.Xcode - develop for iOS and macOS (Xcode 14.1) Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java.ANDROID_HOME = /Users/huynq/Library/Android/sdk.Platform android-33, build-tools 31.0.0.Android SDK at /Users/huynq/Library/Android/sdk.Android toolchain - develop for Android devices (Android SDK version 31.0.0) Flutter version 3.3.10 on channel stable at /Users/huynq/Documents/GitHub/flutter.Tho the bug may be because I use a preview of Flutter 3.7 VS Code at C:\Users\kaloy\AppData\Local\Programs\Microsoft VS Code.IntelliJ at C:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-1\223.8214.52.IntelliJ IDEA Ultimate Edition (version 2022.3) Android Studio at C:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\21335.Android Studio at C:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\21526.Visual Studio Community 2022 version 5.214.Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community.Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.3) Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe.ANDROID_HOME = C:\Users\kaloy\AppData\Local\Android\SdkĬ:\Users\kaloy\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\21335\jre\bin\java.Platform android-33, build-tools 32.1.0-rc1.Android SDK at C:\Users\kaloy\AppData\Local\Android\Sdk.Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) Windows Version (Installed version of Windows is version 10 or higher) Flutter version 3.7.0-19.0.pre on channel flutter-3.7-candidate.19 at D:\flutter.Draw some stuff in canvas and render it as marker as well, but this can be any render widget.īesides this, you can even transform a render widget in an static image and thus, use it as marker too.įirst, create a method that handles the asset path and receives a size (this can be either the width, height, or both, but using only one will preserve ratio).Flutter (Channel flutter-3.7-candidate.19, 3.7.0-19.0.pre, on Microsoft Windows, locale.Pick a local asset and dynamically change its size to whatever you want and render it on the map (a Flutter logo image).I will go through two examples where you can either: That means that you can use raw data to paint whatever you want as a map marker, as long as you keep the right encode format (which in this particular scenario, is a png). TL DR: As long as are able to encode any image into raw bytes such as Uint8List, you should be fine using it as a marker.Īs of now, you can use Uint8List data to create your markers with Google Maps. ![]()
0 Comments
Leave a Reply. |