Add support for svg files. Does it have or can do with the current version
SVG support is included in the pre-release version (0.4.0-rc.2020043001) since #132, #133.
Does it work now?
What to do to render .svg? Or it is not yet released?
flutter_widget_from_html: ^0.4.0-rc.2020043001 still show the alternate text, not the SVG.
HTML:
<p><img src=\"https://latex.codecogs.com/svg.latex?\\small&space;svg&space;\\&space;\\Upsilon&space;26565\\sqrt{66565}\" alt=\"\\small svg \\ \\Upsilon 26565\\sqrt{66565}\" align=\"absmiddle\" /></p>
It works in the pre-releases (version 0.4.0-rc). The latest one is 0.4.0-rc.2020043001.
@daohoangson But I am afraid it still doesn't work for me.
I put .svg in img tag. Can you give me a HTML where it works?
Ah, looks like only inline SVG is supported for now. I'll see whether it's possible to support network SVG.
Version 0.5.0-rc.2020071301 has been released with support for svg file over network. Please try upgrading and see whether it works for you.
I tested it with the file below and it didn't work
Are you sure you are running the latest RC? It seems to work for me.

class Issue175 extends StatelessWidget {
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(title: Text('Issue 175')),
body: SingleChildScrollView(
child: HtmlWidget(kHtml),
),
);
}
const kHtml = """
Hello.
<img class="emoji" role="img" draggable="false" src="https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a7.svg" alt="????" width="15" />
How are you?
""";
it's changing like that
Can you copy the full error message?
Also, do you use flutter_svg directly in your app? If you don't, you can delete that direct dependency. v0.5.0 will use the appropriate version depending on your Flutter version.
Similarly, if you don't use flutter_widget_from_html_core directly, you can delete that direct dependency too.
name: insiders_client_flutter
description: Insiders
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter_widget_from_html: 0.5.0-rc.2020071301
url_launcher: ^5.5.0
flutter_spinkit: ^4.1.2+1
onesignal_flutter: ^2.5.0
string_mask: ^0.1.0
firebase_messaging: ^6.0.16
mask_text_input_formatter: ^1.0.6
device_info: ^0.4.2+4
pull_to_refresh: ^1.5.8
cached_network_image: ^2.2.0+1
shared_preferences: ^0.5.7+3
package_info: ^0.4.1
material_design_icons_flutter: ^4.0.5345
shimmer: ^1.1.0
intl: ^0.16.1
dio: ^3.0.9
flutter_mobx: ^1.1.0+1
mobx: ^1.2.1+1
flutter_modular: ^1.2.7+1
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
dev_dependencies:
mockito: ^4.1.1
mobx_codegen: ^1.1.0+1
build_runner: ^1.10.0
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
assets:
- assets/img/
vars:
clean: flutter clean
get: flutter pub get
runner: flutter pub run build_runner
scripts:
#mobx_build: $clean & $get & $runner build --delete-conflicting-outputs
mobx_b: $runner build
mobx_bc: $clean & $get & $runner build --delete-conflicting-outputs
mobx_watch: $clean & $get & $runner watch --delete-conflicting-outputs
# To add assets to your application, add an assets section, like this:
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
but it's not working for me yet
What is your Flutter channel / version? Can you share flutter doctor -v output? I have run flutter pub get with your pubspec and it resolved without issue.
# Generated by pub on 2020-07-14 09:46:13.591047.
_fe_analyzer_shared:file:///flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-5.0.0/lib/
analyzer:file:///flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.13/lib/
archive:file:///flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.13/lib/
args:file:///flutter/.pub-cache/hosted/pub.dartlang.org/args-1.6.0/lib/
async:file:///flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.1/lib/
boolean_selector:file:///flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.0.0/lib/
build:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build-1.3.0/lib/
build_config:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_config-0.4.2/lib/
build_daemon:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_daemon-2.1.4/lib/
build_resolvers:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_resolvers-1.3.10/lib/
build_runner:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_runner-1.10.0/lib/
build_runner_core:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_runner_core-5.2.0/lib/
built_collection:file:///flutter/.pub-cache/hosted/pub.dartlang.org/built_collection-4.3.2/lib/
built_value:file:///flutter/.pub-cache/hosted/pub.dartlang.org/built_value-7.1.0/lib/
cached_network_image:file:///flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-2.2.0+1/lib/
charcode:file:///flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.3/lib/
checked_yaml:file:///flutter/.pub-cache/hosted/pub.dartlang.org/checked_yaml-1.0.2/lib/
chewie:file:///flutter/.pub-cache/hosted/pub.dartlang.org/chewie-0.9.10/lib/
clock:file:///flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.0.1/lib/
code_builder:file:///flutter/.pub-cache/hosted/pub.dartlang.org/code_builder-3.4.0/lib/
collection:file:///flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.14.12/lib/
convert:file:///flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/
crypto:file:///flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.4/lib/
csslib:file:///flutter/.pub-cache/hosted/pub.dartlang.org/csslib-0.16.1/lib/
dart_style:file:///flutter/.pub-cache/hosted/pub.dartlang.org/dart_style-1.3.6/lib/
device_info:file:///flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+4/lib/
dio:file:///flutter/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9/lib/
file:file:///flutter/.pub-cache/hosted/pub.dartlang.org/file-5.1.0/lib/
firebase_messaging:file:///flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/lib/
fixnum:file:///flutter/.pub-cache/hosted/pub.dartlang.org/fixnum-0.10.11/lib/
flutter:file:///flutter/packages/flutter/lib/
flutter_cache_manager:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cache_manager-1.2.2/lib/
flutter_layout_grid:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_layout_grid-0.10.2/lib/
flutter_mobx:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mobx-1.1.0+1/lib/
flutter_modular:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-1.3.0/lib/
flutter_spinkit:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_spinkit-4.1.2+1/lib/
flutter_svg:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/
flutter_test:file:///flutter/packages/flutter_test/lib/
flutter_web_plugins:file:///flutter/packages/flutter_web_plugins/lib/
flutter_widget_from_html:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.0-rc.2020071301/lib/
flutter_widget_from_html_core:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html_core-0.5.0-rc.2020071301/lib/
glob:file:///flutter/.pub-cache/hosted/pub.dartlang.org/glob-1.2.0/lib/
graphs:file:///flutter/.pub-cache/hosted/pub.dartlang.org/graphs-0.2.0/lib/
html:file:///flutter/.pub-cache/hosted/pub.dartlang.org/html-0.14.0+3/lib/
http:file:///flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.1/lib/
http_multi_server:file:///flutter/.pub-cache/hosted/pub.dartlang.org/http_multi_server-2.2.0/lib/
http_parser:file:///flutter/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.4/lib/
image:file:///flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.12/lib/
intl:file:///flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.1/lib/
io:file:///flutter/.pub-cache/hosted/pub.dartlang.org/io-0.3.4/lib/
js:file:///flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.2/lib/
json_annotation:file:///flutter/.pub-cache/hosted/pub.dartlang.org/json_annotation-3.0.1/lib/
logging:file:///flutter/.pub-cache/hosted/pub.dartlang.org/logging-0.11.4/lib/
mask_text_input_formatter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mask_text_input_formatter-1.0.7/lib/
matcher:file:///flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6/lib/
material_design_icons_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/material_design_icons_flutter-4.0.5345/lib/
meta:file:///flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8/lib/
mime:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mime-0.9.6+3/lib/
mobx:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mobx-1.2.1+1/lib/
mobx_codegen:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mobx_codegen-1.1.0+1/lib/
mockito:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mockito-4.1.1/lib/
node_interop:file:///flutter/.pub-cache/hosted/pub.dartlang.org/node_interop-1.1.1/lib/
node_io:file:///flutter/.pub-cache/hosted/pub.dartlang.org/node_io-1.1.1/lib/
onesignal_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.6.0/lib/
open_iconic_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/open_iconic_flutter-0.3.0/lib/
package_config:file:///flutter/.pub-cache/hosted/pub.dartlang.org/package_config-1.9.3/lib/
package_info:file:///flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.1/lib/
path:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path-1.6.4/lib/
path_drawing:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_drawing-0.4.1/lib/
path_parsing:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_parsing-0.1.4/lib/
path_provider:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.9/lib/
path_provider_linux:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/lib/
path_provider_macos:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/lib/
path_provider_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.2/lib/
pedantic:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.8.0+1/lib/
petitparser:file:///flutter/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0/lib/
platform:file:///flutter/.pub-cache/hosted/pub.dartlang.org/platform-2.2.1/lib/
platform_detect:file:///flutter/.pub-cache/hosted/pub.dartlang.org/platform_detect-1.4.0/lib/
plugin_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-1.0.2/lib/
pool:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pool-1.4.0/lib/
process:file:///flutter/.pub-cache/hosted/pub.dartlang.org/process-3.0.13/lib/
pub_semver:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pub_semver-1.4.4/lib/
pubspec_parse:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pubspec_parse-0.1.5/lib/
pull_to_refresh:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-1.6.0/lib/
quiver:file:///flutter/.pub-cache/hosted/pub.dartlang.org/quiver-2.1.3/lib/
rxdart:file:///flutter/.pub-cache/hosted/pub.dartlang.org/rxdart-0.24.1/lib/
shared_preferences:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.8/lib/
shared_preferences_linux:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+1/lib/
shared_preferences_macos:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/lib/
shared_preferences_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_platform_interface-1.0.4/lib/
shared_preferences_web:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/lib/
shelf:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shelf-0.7.7/lib/
shelf_web_socket:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shelf_web_socket-0.2.3/lib/
shimmer:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shimmer-1.1.1/lib/
sky_engine:file:///flutter/bin/cache/pkg/sky_engine/lib/
source_gen:file:///flutter/.pub-cache/hosted/pub.dartlang.org/source_gen-0.9.6/lib/
source_span:file:///flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.7.0/lib/
sqflite:file:///flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.0+2/lib/
sqflite_common:file:///flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.1/lib/
stack_trace:file:///flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/
stream_channel:file:///flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/
stream_transform:file:///flutter/.pub-cache/hosted/pub.dartlang.org/stream_transform-1.2.0/lib/
string_mask:file:///flutter/.pub-cache/hosted/pub.dartlang.org/string_mask-0.1.0/lib/
string_scanner:file:///flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5/lib/
synchronized:file:///flutter/.pub-cache/hosted/pub.dartlang.org/synchronized-2.2.0/lib/
term_glyph:file:///flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/
test_api:file:///flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.15/lib/
timing:file:///flutter/.pub-cache/hosted/pub.dartlang.org/timing-0.1.1+2/lib/
typed_data:file:///flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/
url_launcher:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.5.0/lib/
url_launcher_linux:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+1/lib/
url_launcher_macos:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+7/lib/
url_launcher_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_platform_interface-1.0.7/lib/
url_launcher_web:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+6/lib/
uuid:file:///flutter/.pub-cache/hosted/pub.dartlang.org/uuid-2.0.4/lib/
vector_math:file:///flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/
video_player:file:///flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.11+1/lib/
video_player_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/video_player_platform_interface-2.0.2/lib/
video_player_web:file:///flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.3+1/lib/
wakelock:file:///flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/lib/
watcher:file:///flutter/.pub-cache/hosted/pub.dartlang.org/watcher-0.9.7+15/lib/
web_socket_channel:file:///flutter/.pub-cache/hosted/pub.dartlang.org/web_socket_channel-1.1.0/lib/
webview_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.22+1/lib/
xdg_directories:file:///flutter/.pub-cache/hosted/pub.dartlang.org/xdg_directories-0.1.0/lib/
xml:file:///flutter/.pub-cache/hosted/pub.dartlang.org/xml-3.6.1/lib/
yaml:file:///flutter/.pub-cache/hosted/pub.dartlang.org/yaml-2.2.1/lib/
test20200402:lib/
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[β] Flutter (Channel master, 1.20.0-8.0.pre.57, on Microsoft Windows [versΓΒ£o 10.0.18363.900], locale pt-BR)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[β] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[β] Android Studio (version 4.0)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[β] VS Code (version 1.47.0)
[β] Connected device (6 available)
! Doctor found issues in 3 categories.
I have switched to master channel and it seems to work. What is your error message?
flutter doctor -v
[β] Flutter (Channel master, 1.20.0-8.0.pre.75, on Mac OS X 10.14.6 18G5033,
locale en-VN)
β’ Flutter version 1.20.0-8.0.pre.75 at /Users/sondh/repos/flutter
β’ Framework revision bb3280885c (4 hours ago), 2020-07-13 16:28:27 -0700
β’ Engine revision f10f172573
β’ Dart version 2.9.0 (build 2.9.0-20.0.dev 06cb010247)
[β] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
β’ Android SDK at /Users/sondh/Library/Android/sdk
β’ Platform android-28, build-tools 28.0.3
β’ ANDROID_HOME = /Users/sondh/Library/Android/sdk
β’ Java binary at: /Users/sondh/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6514223/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
β’ Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 11.2.1)
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Xcode 11.2.1, Build version 11B53
β’ CocoaPods version 1.9.1
[β] Chrome - develop for the web
β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[β] Android Studio (version 4.0)
β’ Android Studio at /Users/sondh/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6514223/Android
Studio.app/Contents
β’ Flutter plugin version 47.1.2
β’ Dart plugin version 191.8593
β’ Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[β] VS Code (version 1.47.0)
β’ VS Code at /Applications/Visual Studio Code.app/Contents
β’ Flutter extension version 3.12.2
[β] Connected device (3 available)
β’ macOS (desktop) β’ macos β’ darwin-x64 β’ Mac OS X 10.14.6 18G5033
β’ Web Server (web) β’ web-server β’ web-javascript β’ Flutter Tools
β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome
83.0.4103.116
β’ No issues found!
.packages
# Generated by pub on 2020-07-14 10:45:36.306555.
_fe_analyzer_shared:file:///flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-5.0.0/lib/
analyzer:file:///flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.39.13/lib/
args:file:///flutter/.pub-cache/hosted/pub.dartlang.org/args-1.6.0/lib/
async:file:///flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.2/lib/
boolean_selector:file:///flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.0.0/lib/
build:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build-1.3.0/lib/
build_config:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_config-0.4.2/lib/
build_daemon:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_daemon-2.1.4/lib/
build_resolvers:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_resolvers-1.3.10/lib/
build_runner:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_runner-1.10.0/lib/
build_runner_core:file:///flutter/.pub-cache/hosted/pub.dartlang.org/build_runner_core-5.2.0/lib/
built_collection:file:///flutter/.pub-cache/hosted/pub.dartlang.org/built_collection-4.3.2/lib/
built_value:file:///flutter/.pub-cache/hosted/pub.dartlang.org/built_value-7.1.0/lib/
cached_network_image:file:///flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-2.2.0+1/lib/
characters:file:///flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0-nullsafety/lib/
charcode:file:///flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.3/lib/
checked_yaml:file:///flutter/.pub-cache/hosted/pub.dartlang.org/checked_yaml-1.0.2/lib/
chewie:file:///flutter/.pub-cache/hosted/pub.dartlang.org/chewie-0.9.10/lib/
clock:file:///flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.0.1/lib/
code_builder:file:///flutter/.pub-cache/hosted/pub.dartlang.org/code_builder-3.4.0/lib/
collection:file:///flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0-nullsafety/lib/
convert:file:///flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/
crypto:file:///flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.4/lib/
csslib:file:///flutter/.pub-cache/hosted/pub.dartlang.org/csslib-0.16.1/lib/
dart_style:file:///flutter/.pub-cache/hosted/pub.dartlang.org/dart_style-1.3.6/lib/
device_info:file:///flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+4/lib/
dio:file:///flutter/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9/lib/
fake_async:file:///flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.1.0/lib/
file:file:///flutter/.pub-cache/hosted/pub.dartlang.org/file-5.1.0/lib/
firebase_messaging:file:///flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/lib/
fixnum:file:///flutter/.pub-cache/hosted/pub.dartlang.org/fixnum-0.10.11/lib/
flutter:file:///flutter/packages/flutter/lib/
flutter_cache_manager:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cache_manager-1.2.2/lib/
flutter_layout_grid:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_layout_grid-0.10.2/lib/
flutter_mobx:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_mobx-1.1.0+1/lib/
flutter_modular:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_modular-1.3.0/lib/
flutter_spinkit:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_spinkit-4.1.2+1/lib/
flutter_svg:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/
flutter_test:file:///flutter/packages/flutter_test/lib/
flutter_web_plugins:file:///flutter/packages/flutter_web_plugins/lib/
flutter_widget_from_html:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.0-rc.2020071301/lib/
flutter_widget_from_html_core:file:///flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html_core-0.5.0-rc.2020071301/lib/
glob:file:///flutter/.pub-cache/hosted/pub.dartlang.org/glob-1.2.0/lib/
graphs:file:///flutter/.pub-cache/hosted/pub.dartlang.org/graphs-0.2.0/lib/
html:file:///flutter/.pub-cache/hosted/pub.dartlang.org/html-0.14.0+3/lib/
http:file:///flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.1/lib/
http_multi_server:file:///flutter/.pub-cache/hosted/pub.dartlang.org/http_multi_server-2.2.0/lib/
http_parser:file:///flutter/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.4/lib/
intl:file:///flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.1/lib/
io:file:///flutter/.pub-cache/hosted/pub.dartlang.org/io-0.3.4/lib/
js:file:///flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.2/lib/
json_annotation:file:///flutter/.pub-cache/hosted/pub.dartlang.org/json_annotation-3.0.1/lib/
logging:file:///flutter/.pub-cache/hosted/pub.dartlang.org/logging-0.11.4/lib/
mask_text_input_formatter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mask_text_input_formatter-1.0.7/lib/
matcher:file:///flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.8/lib/
material_design_icons_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/material_design_icons_flutter-4.0.5345/lib/
meta:file:///flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0-nullsafety/lib/
mime:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mime-0.9.6+3/lib/
mobx:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mobx-1.2.1+1/lib/
mobx_codegen:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mobx_codegen-1.1.0+1/lib/
mockito:file:///flutter/.pub-cache/hosted/pub.dartlang.org/mockito-4.1.1/lib/
node_interop:file:///flutter/.pub-cache/hosted/pub.dartlang.org/node_interop-1.1.1/lib/
node_io:file:///flutter/.pub-cache/hosted/pub.dartlang.org/node_io-1.1.1/lib/
onesignal_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.6.0/lib/
open_iconic_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/open_iconic_flutter-0.3.0/lib/
package_config:file:///flutter/.pub-cache/hosted/pub.dartlang.org/package_config-1.9.3/lib/
package_info:file:///flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.1/lib/
path:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path-1.7.0/lib/
path_drawing:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_drawing-0.4.1/lib/
path_parsing:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_parsing-0.1.4/lib/
path_provider:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.9/lib/
path_provider_linux:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/lib/
path_provider_macos:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/lib/
path_provider_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.2/lib/
pedantic:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.8.0+1/lib/
petitparser:file:///flutter/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0/lib/
platform:file:///flutter/.pub-cache/hosted/pub.dartlang.org/platform-2.2.1/lib/
platform_detect:file:///flutter/.pub-cache/hosted/pub.dartlang.org/platform_detect-1.4.0/lib/
plugin_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-1.0.2/lib/
pool:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pool-1.4.0/lib/
process:file:///flutter/.pub-cache/hosted/pub.dartlang.org/process-3.0.13/lib/
pub_semver:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pub_semver-1.4.4/lib/
pubspec_parse:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pubspec_parse-0.1.5/lib/
pull_to_refresh:file:///flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-1.6.0/lib/
quiver:file:///flutter/.pub-cache/hosted/pub.dartlang.org/quiver-2.1.3/lib/
rxdart:file:///flutter/.pub-cache/hosted/pub.dartlang.org/rxdart-0.24.1/lib/
shared_preferences:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.8/lib/
shared_preferences_linux:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-0.0.2+1/lib/
shared_preferences_macos:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/lib/
shared_preferences_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_platform_interface-1.0.4/lib/
shared_preferences_web:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/lib/
shelf:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shelf-0.7.7/lib/
shelf_web_socket:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shelf_web_socket-0.2.3/lib/
shimmer:file:///flutter/.pub-cache/hosted/pub.dartlang.org/shimmer-1.1.1/lib/
sky_engine:file:///flutter/bin/cache/pkg/sky_engine/lib/
source_gen:file:///flutter/.pub-cache/hosted/pub.dartlang.org/source_gen-0.9.6/lib/
source_span:file:///flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.7.0/lib/
sqflite:file:///flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.0+2/lib/
sqflite_common:file:///flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.1/lib/
stack_trace:file:///flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.5/lib/
stream_channel:file:///flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/
stream_transform:file:///flutter/.pub-cache/hosted/pub.dartlang.org/stream_transform-1.2.0/lib/
string_mask:file:///flutter/.pub-cache/hosted/pub.dartlang.org/string_mask-0.1.0/lib/
string_scanner:file:///flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5/lib/
synchronized:file:///flutter/.pub-cache/hosted/pub.dartlang.org/synchronized-2.2.0/lib/
term_glyph:file:///flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/
test_api:file:///flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.17/lib/
timing:file:///flutter/.pub-cache/hosted/pub.dartlang.org/timing-0.1.1+2/lib/
typed_data:file:///flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0-nullsafety/lib/
url_launcher:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.5.0/lib/
url_launcher_linux:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.0.1+1/lib/
url_launcher_macos:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+7/lib/
url_launcher_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_platform_interface-1.0.7/lib/
url_launcher_web:file:///flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+6/lib/
uuid:file:///flutter/.pub-cache/hosted/pub.dartlang.org/uuid-2.0.4/lib/
vector_math:file:///flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0-nullsafety/lib/
video_player:file:///flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.11+1/lib/
video_player_platform_interface:file:///flutter/.pub-cache/hosted/pub.dartlang.org/video_player_platform_interface-2.0.2/lib/
video_player_web:file:///flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.3+1/lib/
wakelock:file:///flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/lib/
watcher:file:///flutter/.pub-cache/hosted/pub.dartlang.org/watcher-0.9.7+15/lib/
web_socket_channel:file:///flutter/.pub-cache/hosted/pub.dartlang.org/web_socket_channel-1.1.0/lib/
webview_flutter:file:///flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.22+1/lib/
xdg_directories:file:///flutter/.pub-cache/hosted/pub.dartlang.org/xdg_directories-0.1.0/lib/
xml:file:///flutter/.pub-cache/hosted/pub.dartlang.org/xml-3.6.1/lib/
yaml:file:///flutter/.pub-cache/hosted/pub.dartlang.org/yaml-2.2.1/lib/
test20200402:lib/
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a7.svg error: Exception: Could not instantiate image codec.
I/chatty ( 415): uid=10175(br.com.smartvisioncode.insiders_client_flutter) 1.ui identical 3 lines
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a7.svg error: Exception: Could not instantiate image codec.
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a8.svg error: Exception: Could not instantiate image codec.
I/chatty ( 415): uid=10175(br.com.smartvisioncode.insiders_client_flutter) 1.ui identical 4 lines
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a8.svg error: Exception: Could not instantiate image codec.
Ah, the app builds now? Have you try flutter clean before running it?
On Tue, Jul 14, 2020, 20:56 jheimesilveirazup notifications@github.com
wrote:
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a7.svg
error: Exception: Could not instantiate image codec.
I/chatty ( 415): uid=10175(br.com.smartvisioncode.insiders_client_flutter)
1.ui identical 3 lines
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a7.svg
error: Exception: Could not instantiate image codec.
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a8.svg
error: Exception: Could not instantiate image codec.
I/chatty ( 415): uid=10175(br.com.smartvisioncode.insiders_client_flutter)
1.ui identical 4 lines
I/flutter ( 415): https://s.w.org/images/core/emoji/12.0.0-1/svg/1f6a8.svg
error: Exception: Could not instantiate image codec.β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/daohoangson/flutter_widget_from_html/issues/175#issuecomment-658194868,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB2N2FL3LNB7AG2KPOZW23R3RPYVANCNFSM4MYMYOBQ
.
yes:
flutter clean & flutter pub get & flutter pub run build_runner build --delete-conflicting-outputs
Hmm, in your app code, did you import the core package or the enhanced one?
On Tue, Jul 14, 2020, 21:00 jheimesilveirazup notifications@github.com
wrote:
yes:
flutter clean & flutter pub get & flutter pub run build_runner build
--delete-conflicting-outputsβ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/daohoangson/flutter_widget_from_html/issues/175#issuecomment-658197036,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB2N2GCEYVNB7IPNFBEJ73R3RQHDANCNFSM4MYMYOBQ
.
That's weird... Can you use the DevTools and double check the widget being
used to render the image? It could be Image or SvgPicture... But it
should be the svg one.
On Tue, Jul 14, 2020, 21:07 jheimesilveirazup notifications@github.com
wrote:
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/daohoangson/flutter_widget_from_html/issues/175#issuecomment-658201138,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB2N2CXBYDQDEWOKZRJMA3R3RRCPANCNFSM4MYMYOBQ
.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(properties);
^^^^^^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.
if I use lib
import 'package: flutter_widget_from_html_core / flutter_widget_from_html.dart';
I get the error, but if I use the lib
import 'package: flutter_widget_from_html_core / flutter_widget_from_html_core.dart';
executes the code but does not load the svg img
if I use lib import 'package: flutter_widget_from_html_core / flutter_widget_from_html.dart';
You can't use it like this. It must be either
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
or
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
Please note that the core one doesn't support SVG.
finally i managed to run the correct version, when i used flutter_widget_from_html_core it ran and when i used flutter_widget_from_html it triggered the errors, but i put the dependency in my code:
dependency_overrides:
flutter_svg: ^ 0.18.0
so it worked for me;
That's weird. You shouldn't have to do that because pub will resolve the dependency version itself...
Anyway, I'm glad it worked out π
Just to note that I had the same build errors as https://github.com/daohoangson/flutter_widget_from_html/issues/175#issuecomment-658208638 and adding flutter_svg dependency in pubspec.yaml solved my issues too:
dependency_overrides:
flutter_svg: 0.18.0