未经debug模式运行时未出现的flutter UI

问题描述 投票:0回答:0

该应用似乎正在运行,因为我可以与屏幕上的元素进行交互。

,例如,我可以按按钮,然后给出反馈(例如,按钮按动画)。

当我专注于文本字段时,键盘动画也会出现。

    但实际的UI内容(文本,按钮等)不会在屏幕上渲染。 我附上了当前屏幕行为的屏幕截图以供参考:
  • 有人以前经历过这样的事情,还是对可能导致这个问题的原因有任何想法?我已经尝试重新启动模拟器并确保所有内容都是最新的,但是问题仍然存在。
  • fllutter医生:
  • > flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.27.3, on Ubuntu 24.04.1 LTS 6.8.0-51-generic, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2024.1) [✓] Android Studio (version 2024.2) [✓] IntelliJ IDEA Ultimate Edition (version 2024.3) [✓] VS Code (version 1.96.4) [✓] VS Code (version 1.96.4) [✓] Connected device (3 available) [✓] Network resources • No issues found!
  • 我使用的工具:

VSCODE

android Studio Koala2024.1.1

ubuntuos

log控制台:

Launching lib/main.dart on sdk gphone16k x86 64 in debug mode... ✓ Built build/app/outputs/flutter-apk/app-debug.apk I/flutter ( 4077): [IMPORTANT:flutter/shell/platform/android/android_context_vk_impeller.cc(60)] Using the Impeller rendering backend (Vulkan). Connecting to VM Service at ws://127.0.0.1:40267/Q6xjVd242Bs=/ws Connected to the VM Service. I/MESA ( 4077): exportSyncFdForQSRILocked: call for image 0x7e7727d92250 hos timage handle 0x70002000004be I/MESA ( 4077): exportSyncFdForQSRILocked: got fd: 148 I/MESA ( 4077): exportSyncFdForQSRILocked: call for image 0x7e7727d8f510 hos timage handle 0x70002000004c2 I/MESA ( 4077): exportSyncFdForQSRILocked: got fd: 153 D/ProfileInstaller( 4077): Installing profile for com.example.learn_bloc

您尝试在物理设备上运行它吗? 我遇到了与可分解的仿真器一起运行的问题。

android flutter
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.