Closed Sunbreak closed 4 years ago
This is unlikely to be addressed in the short term in the HTML backend. Browsers do not allow grabbing the pixels of HTML content due to CORS restrictions.
Can you please explain your use-case. Perhaps we can suggest an alternative code path for the Web.
This is unlikely to be addressed in the short term in the HTML backend. Browsers do not allow grabbing the pixels of HTML content due to CORS restrictions.
Can you please explain your use-case. Perhaps we can suggest an alternative code path for the Web.
toImage
is used to take screen snapshot or export images.
We are developing smart notepad, someting like Wacom Bamboo Slate
, as show in https://github.com/woodemi/notepad_core/tree/master/notepad_core
It's a common use-case to export to PNG/JPEG what you draw on the canvas with smart notepad
In general on the Web it is hard to get the pixels of a web-page due to cross-origin restrictions. We can partially support it in the CanvasKit backend, but again, we won't be able to get the pixels of cross-origin images or platform views.
In the meantime, perhaps you could have a custom canvas implementation that either forwards to Flutter Canvas
or to an SVG exporter. We've seen this request in the past, so perhaps this could be a great pub package.
In general on the Web it is hard to get the pixels of a web-page due to cross-origin restrictions. We can partially support it in the CanvasKit backend, but again, we won't be able to get the pixels of cross-origin images or platform views.
In the meantime, perhaps you could have a custom canvas implementation that either forwards to Flutter
Canvas
or to an SVG exporter. We've seen this request in the past, so perhaps this could be a great pub package.
Thanks for the advise. We'll try the web platform later
https://github.com/flutter/flutter/issues/48383
Is there any docs about the API compatibility between Android/iOS and Web? i.e. How to tell which API is compatible when transfer an Android/iOS APP to Web APP?
This issue has been split up into the following two issues:
https://github.com/flutter/flutter/issues/42767 https://github.com/flutter/flutter/issues/49857
I will close this one.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
The following code works on Android/iOS,but fails on Web
Steps to Reproduce
See RenderRepaintBoundary on Dartpad
Target Platform: Web Target OS version/browser: Chrome Devices: Chrome
Logs
flutter run --verbose
logs
```bash sunbreaks-MBP:snapshot_test sunbreak$ flutter run --verbose [ +26 ms] executing: [/Users/sunbreak/workspace/github-sunbreak/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +43 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 18cd7a3601bcffb36fdf2f679f763b5e827c2e8e [ +1 ms] executing: [/Users/sunbreak/workspace/github-sunbreak/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +30 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v1.12.13+hotfix.6-0-g18cd7a360 [ +8 ms] executing: [/Users/sunbreak/workspace/github-sunbreak/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] executing: [/Users/sunbreak/workspace/github-sunbreak/flutter/] git ls-remote --get-url origin [ +9 ms] Exit code 0 from: git ls-remote --get-url origin [ ] git@github.com:flutter/flutter.git [ +63 ms] executing: [/Users/sunbreak/workspace/github-sunbreak/flutter/] git rev-parse --abbrev-ref HEAD [ +15 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ +8 ms] executing: sw_vers -productName [ +17 ms] Exit code 0 from: sw_vers -productName [ ] Mac OS X [ ] executing: sw_vers -productVersion [ +12 ms] Exit code 0 from: sw_vers -productVersion [ ] 10.14.6 [ ] executing: sw_vers -buildVersion [ +13 ms] Exit code 0 from: sw_vers -buildVersion [ ] 18G103 [ +34 ms] executing: /usr/bin/xcode-select --print-path [ +14 ms] Exit code 0 from: /usr/bin/xcode-select --print-path [ ] /Applications/Xcode.app/Contents/Developer [ +1 ms] executing: /usr/bin/xcodebuild -version [ +241 ms] Exit code 0 from: /usr/bin/xcodebuild -version [ +4 ms] Xcode 11.0 Build version 11A420a [ +67 ms] executing: /Users/sunbreak/Library/Android/sdk/platform-tools/adb devices -l [ +7 ms] Exit code 0 from: /Users/sunbreak/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached c34bc6a4 device usb:336592896X product:oscar model:OC105 device:oscar transport_id:2 [ +20 ms] executing: /Users/sunbreak/workspace/github-sunbreak/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h [ +43 ms] /usr/bin/xcrun simctl list --json devices [ +114 ms] /Users/sunbreak/Library/Android/sdk/platform-tools/adb -s c34bc6a4 shell getprop [ +84 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +152 ms] Generating /Users/sunbreak/Temps/snapshot_test/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +26 ms] ro.hardware = qcom ⣽[ +16 ms] executing: [/Users/sunbreak/Temps/snapshot_test/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/sunbreak/Temps/snapshot_test/ios/Runner.xcodeproj -target Runner -showBuildSettings [ +1 ms] executing: [/Users/sunbreak/Temps/snapshot_test/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/sunbreak/Temps/snapshot_test/ios/Runner.xcodeproj -target Runner -showBuildSettings (This is taking an unexpectedly long time.)⣾[+3933 ms] Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = sunbreak ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO APPLY_RULES_IN_COPY_HEADERS = NO ARCHS = armv7 arm64 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios BUILD_LIBRARY_FOR_DISTRIBUTION = NO BUILD_ROOT = /Users/sunbreak/Temps/snapshot_test/build/ios BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Release-iphoneos CACHE_ROOT = /var/folders/gy/zqj45k4x04x8lnbhgg8wky240000gn/C/com.apple.DeveloperTools/11.0-11A420a/Xcode CCHROOT = /var/folders/gy/zqj45k4x04x8lnbhgg8wky240000gn/C/com.apple.DeveloperTools/11.0-11A420a/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_COMMA = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES CLANG_WARN_OBJC_LITERAL_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_RANGE_LOOP_ANALYSIS = YES CLANG_WARN_STRICT_PROTOTYPES = YES CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/sunbreak/Temps/snapshot_test/build/ios/Release-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = Default COMPOSITE_SDK_DIRS = /Users/sunbreak/Temps/snapshot_test/build/ios/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Release CONFIGURATION_BUILD_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Release-iphoneos CONFIGURATION_TEMP_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sd k CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator13.0 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_PROJECT_VERSION = 1 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf-with-dsym DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_DEXT_INSTALL_PATH = /System/Library/DriverExtensions DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_LD_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_LD_FLAG_NAME = ios_version_min DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.0 12.1 12.2 12.3 12.4 13.0 DERIVED_FILES_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = en DOCUMENTATION_FOLDER_PATH = Runner.app/en.lproj/Documentation DONT_GENERATE_INFOPLIST_FILE = NO DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/sunbreak/Temps/snapshot_test/build/ios/Release-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HARDENED_RUNTIME = NO ENABLE_HEADER_DEPENDENCIES = YES ENABLE_NS_ASSERTIONS = NO ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_DESTINATION = Signature ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/sunbreak/Temps/snapshot_test FLUTTER_BUILD_DIR = build FLUTTER_BUILD_NAME = 1.0.0 FLUTTER_BUILD_NUMBER = 1 FLUTTER_FRAMEWORK_DIR = /Users/sunbreak/workspace/github-sunbreak/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/sunbreak/workspace/github-sunbreak/flutter FLUTTER_TARGET = lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = /Users/sunbreak/Temps/snapshot_test/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HIDE_BITCODE_SYMBOLS = YES HOME = /Users/sunbreak ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/Info.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/en.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = sunbreak INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runne r_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm6 4.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_DEXT_INSTALL_PATH = /Library/DriverExtensions LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = /Users/sunbreak/Temps/snapshot_test/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_FILE_LIST_normal_armv7 = LINK_WITH_STANDARD_LIBRARIES = YES LLVM_TARGET_TRIPLE_OS_VERSION = ios8.0 LLVM_TARGET_TRIPLE_VENDOR = apple LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/en.lproj LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFCopyLocalizedString LOCALIZED_STRING_SWIFTUI_SUPPORT = YES LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 18G103 MAC_OS_X_VERSION_ACTUAL = 101406 MAC_OS_X_VERSION_MAJOR = 101400 MAC_OS_X_VERSION_MINOR = 1406 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Release-iphoneos/Runner.app MODULES_FOLDER_PATH = Runner.app/Modules MODULE_CACHE_DIR = /Users/sunbreak/Library/Developer/Xcode/DerivedData/ModuleCache.noindex MTL_ENABLE_DEBUG_INFO = NO NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/sunbreak/Temps/snapshot_test/build/ios ONLY_ACTIVE_ARCH = NO OS = MACOS OSAC = /usr/bin/osacompile PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/Users/sunbreak/.nvm/versions/node/v8.16.2/bin:/usr/local/bin:/u sr/bin:/bin:/usr/sbin:/sbin:/Users/sunbreak/.nvm/versions/node/v8.16.2/bin:/Users/sunbreak/workspace/github-sunbrea k/flutter/bin:/Users/sunbreak/Library/Android/sdk/platform-tools/:/Users/sunbreak/workspace/github-sunbreak/flutter /bin:/Users/sunbreak/Library/Android/sdk/platform-tools/ PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 17A566 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.example.snapshotTest PRODUCT_BUNDLE_PACKAGE_TYPE = APPL PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/sunbreak/Temps/snapshot_test/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/DerivedSources PROJECT_DIR = /Users/sunbreak/Temps/snapshot_test/ios PROJECT_FILE_PATH = /Users/sunbreak/Temps/snapshot_test/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build PROJECT_TEMP_ROOT = /Users/sunbreak/Temps/snapshot_test/build/ios PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/O bjects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk SDK_DIR_iphoneos13_0 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk SDK_NAME = iphoneos13.0 SDK_NAMES = iphoneos13.0 SDK_PRODUCT_BUILD_VERSION = 17A566 SDK_VERSION = 13.0 SDK_VERSION_ACTUAL = 130000 SDK_VERSION_MAJOR = 130000 SDK_VERSION_MINOR = 000 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Release-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/SharedPrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/sunbreak/Temps/snapshot_test/ios SRCROOT = /Users/sunbreak/Temps/snapshot_test/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphoneos SUPPORTS_MACCATALYST = NO SUPPORTS_TEXT_BASED_API = NO SWIFT_COMPILATION_MODE = wholemodule SWIFT_OBJC_BRIDGING_HEADER = Runner/Runner-Bridging-Header.h SWIFT_OPTIMIZATION_LEVEL = -O SWIFT_PLATFORM_TARGET_PREFIX = ios SWIFT_VERSION = 5.0 SYMROOT = /Users/sunbreak/Temps/snapshot_test/build/ios SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DEXT_INSTALL_PATH = /System/Library/DriverExtensions SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Release-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILES_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILE_DIR = /Users/sunbreak/Temps/snapshot_test/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_ROOT = /Users/sunbreak/Temps/snapshot_test/build/ios TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = sunbreak USER_APPS_DIR = /Users/sunbreak/Applications USER_LIBRARY_DIR = /Users/sunbreak/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO USE_LLVM_TARGET_TRIPLES = YES USE_LLVM_TARGET_TRIPLES_FOR_CLANG = YES USE_LLVM_TARGET_TRIPLES_FOR_LD = YES USE_LLVM_TARGET_TRIPLES_FOR_TAPI = YES VALIDATE_PRODUCT = YES VALIDATE_WORKSPACE = NO VALID_ARCHS = arm64 arm64e armv7 armv7s VERBOSE_PBXCP = NO VERSIONING_SYSTEM = apple-generic VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = sunbreak VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = "@(#)PROGRAM:Runner PROJECT:Runner-1" WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 11A420a XCODE_VERSION_ACTUAL = 1100 XCODE_VERSION_MAJOR = 1100 XCODE_VERSION_MINOR = 1100 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal [ +147 ms] Launching lib/main.dart on OC105 in debug mode... [ +10 ms] executing: /Users/sunbreak/Library/Android/sdk/platform-tools/adb -s c34bc6a4 shell -x logcat -v time -s flutter [ +3 ms] executing: /Users/sunbreak/Library/Android/sdk/platform-tools/adb version [ +26 ms] Android Debug Bridge version 1.0.41 Version 29.0.1-5644136 Installed as /Users/sunbreak/Library/Android/sdk/platform-tools/adb [ +2 ms] executing: /Users/sunbreak/Library/Android/sdk/platform-tools/adb start-server [ +13 ms] Building APK [ +24 ms] Running Gradle task 'assembleDebug'... [ +1 ms] gradle.properties already sets `android.enableR8` [ +3 ms] Using gradle from /Users/sunbreak/Temps/snapshot_test/android/gradlew. [ +16 ms] executing: /usr/bin/plutil -convert json -o - /Users/sunbreak/Applications/JetBrains Toolbox/Android Studio.app/Contents/Info.plist [ +16 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Users/sunbreak/Applications/JetBrains Toolbox/Android Studio.app/Contents/Info.plist [ ] {"NSHumanReadableCopyright":"Copyright (c) JetBrains s.r.o.","CFBundleIdentifier":"com.jetbrains.apps.activator.linkapp.pcom.jetbrains.apps.activator__ndroid_tudio_3_5_3","CFBundleInfoDictiona ryVersion":"6.0","CFBundleLongVersionString":"3.5.3","CFBundleVersion":"3.5.3","CFBundleShortVersionString":"3.5.3","CFBundleExecutable":"j etbrains-toolbox-launcher","CFBundleGetInfoString":"","NSHighResolutionCapable":true,"CFBundleSignature":"????","LSUIElement":true,"CFBundl ePackageType":"APPL","CFBundleIconFile":"icon.icns","JetBrainsToolboxApp":"\/Users\/sunbreak\/Library\/Application Support\/JetBrains\/Toolbox\/apps\/AndroidStudio\/ch-0\/191.6010548\/Android Studio.app","CFBundleDevelopmentRegion":"English","NSUIElement":false,"CFBundleName":"Android Studio 3.5.3"} [ +3 ms] executing: /usr/bin/plutil -convert json -o - /Users/sunbreak/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.6010548/Android Studio.app/Contents/Info.plist [ +9 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Users/sunbreak/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.6010548/Android Studio.app/Contents/Info.plist [ ] {"CFBundleName":"Android Studio","JVMOptions":{"MainClass":"com.intellij.idea.Main","ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/ lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP _PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","Properties":{"idea.home.path":"$APP_PA CKAGE\/Contents","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.paths.selector":"AndroidStudio3.5"},"WorkingDirect ory":"$APP_PACKAGE\/Contents\/bin"},"LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-191.8026.42.35.6010548","CFBundleDevelopmentR egion":"English","CFBundleDocumentTypes":[{"CFBundleTypeExtensions":["ipr"],"CFBundleTypeName":"Android Studio Project File","CFBundleTypeIconFile":"studio.icns","CFBundleTypeRole":"Editor"},{"CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"LST ypeIsPackage":false,"CFBundleTypeName":"All documents","CFBundleTypeRole":"Editor"}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studi o.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"3.5","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studi o","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"],"CFBundleTypeRole":" Editor"}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSigna ture":"????","LSMinimumSystemVersion":"10.8","CFBundleGetInfoString":"Android Studio 3.5, build AI-191.8026.42.35.6010548. Copyright JetBrains s.r.o., (c) 2000-2019"} [ +8 ms] executing: /Users/sunbreak/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.6010548/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ +85 ms] Exit code 0 from: /Users/sunbreak/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.6010548/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ ] openjdk version "1.8.0_202-release" OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode) [ +2 ms] executing: [/Users/sunbreak/Temps/snapshot_test/android/] /Users/sunbreak/Temps/snapshot_test/android/gradlew -Pverbose=true -Ptarget=/Users/sunbreak/Temps/snapshot_test/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm64 assembleDebug [ +94 ms] E/flutter ( 8303): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'findRenderObject' was called on null. [ ] E/flutter ( 8303): Receiver: null [ ] E/flutter ( 8303): Tried calling: findRenderObject() [ ] E/flutter ( 8303): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) [ ] E/flutter ( 8303): #1 _MobileHomePageState.build.flutter analyze
flutter doctor -v