ITADN

Flutter 3.38 WASM failing to compile

#1536Openpauuceda 创建于 2025-11-28
bug
P
pauucedacommented
<!-- Thank you for using flutter_widget_from_html! If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill out the template below. --> ## Steps to Reproduce <!-- You should provide as much info as possible so that we can reproduce the problem. --> <details> <summary>HTML</summary> <!-- Paste the HTML in full that is not working as expected --> ```html ``` </details> <details> <summary>`HtmlWidget` configuration</summary> <!-- Paste how you are configuring `HtmlWidget` in your app code, e.g.: HtmlWidget( html, onTapUrl: (url) => _someSpecialLogic(url), textStyle: _someCustomStyle, ); --> ```dart HtmlWidget( state.message!, textStyle: GoogleFonts.roboto( fontSize: 16, color: Theme.of(context).colorScheme.tertiary, ), ) ``` </details> <details> <summary>Tesing environment</summary> <!-- Finally, paste the output of running `flutter doctor -v` here. --> ``` [√] Flutter (Channel stable, 3.38.3, on Microsoft Windows [Versi¢n 10.0.26200.7171], locale es-ES) [367ms] • Flutter version 3.38.3 on channel stable at C:\Users\pauuc\fvm\versions\3.38.3 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 19074d12f7 (8 days ago), 2025-11-20 17:53:13 -0500 • Engine revision 13e658725d • Dart version 3.10.1 • DevTools version 2.51.1 • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging [√] Windows Version (11 Pro 64-bit, 25H2, 2009) [1.100ms] [√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [2,2s] • Android SDK at C:\Users\pauuc\AppData\Local\Android\sdk • Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A) • Platform android-36.1, build-tools 36.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java This is the JDK bundled with the latest Android Studio installation on this machine. To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`. • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72) • All Android licenses accepted. [√] Chrome - develop for the web [82ms] • Chrome at C:\Users\pauuc\AppData\Local\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop Windows apps (Visual Studio Community 2026 18.0.2) [81ms] • Visual Studio at C:\Program Files\Microsoft Visual Studio\18\Community • Visual Studio Community 2026 version 18.0.11222.15 • Windows 10 SDK version 10.0.26100.0 [√] Connected device (3 available) [261ms] • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Versi¢n 10.0.26200.7171] • Chrome (web) • chrome • web-javascript • Google Chrome 142.0.7444.176 • Edge (web) • edge • web-javascript • Microsoft Edge 142.0.3595.94 [√] Network resources [378ms] • All expected network resources are available. • No issues found! ``` </details> ## Expected results <!-- What did you want to see? --> Since Flutter 3.38 update, my application is failing to compile to WebAssembly as it throws this error related to flutter_widget_from_html: type 'NullConstant' is not a subtype of type 'IntConstant' in type cast ## Actual results Failed to compile <!-- What did you see? Include a screenshot and/or recording would help tremendously. -->
1 条评论