You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter应用在Android和iOS上渲染出现大块绿色像素问题求助

Flutter应用部分Widget在Android/iOS上出现大块绿色像素问题求助

我的Flutter应用部分Widget在Android和iOS设备上渲染时出现大块绿色像素(截图显示该问题)。目前我无法复现该问题,也无法从反馈此问题的用户处获取更多信息。

我在网上找到一个描述类似问题的GitHub线程,尝试升级至最新稳定版Flutter(版本3.27.2)后,问题仍未解决,甚至有更多用户反馈该问题。

以下是flutter doctor -v的输出信息,恳请各位提供解决建议,谢谢!

[!] Flutter (Channel stable, 3.27.2, on macOS 15.2 24C101 darwin-arm64, locale en-CA)
    • Flutter version 3.27.2 on channel stable at /Users/mm/Workspace/flutter
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.6.0/libexec/bin/dart, which is not inside your current Flutter
      SDK checkout at /Users/mm/Workspace/flutter. Consider adding /Users/mm/Workspace/flutter/bin to the front of your
      path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 68415ad1d9 (2 weeks ago), 2025-01-13 10:22:03 -0800
    • Engine revision e672b006cb
    • Dart version 3.6.1
    • DevTools version 2.40.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update
      checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/mm/Library/Android/sdk
    • Platform android-35, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.96.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (5 available)            
    • iPhone 15 (mobile)              • 48C4764C-B51E-4558-82DA-63335991F89C • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-2
      (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 15.2 24C101 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 15.2 24C101 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 132.0.6834.111

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

内容的提问来源于stack exchange,提问作者user29394302

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 19:04:55