Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dart:ui:1: Error: Not found: dart:ui. flutter/dart:

Tags:

flutter

dart

When I start a debugging session (pressing F5) I receive the following messages:

dart:ui:1: Error: Not found: dart:ui. Exited (sigterm) 

There is no indication as to where the problem occurred. Output from flutter doctor -v is:

[√] Flutter (Channel beta, v0.8.2, on Microsoft Windows [Version 6.1.7601], locale en-US)     • Flutter version 0.8.2 at C:\Downloads\flutter\flutter_windows_v0.5.1-beta\flutter     • Framework revision 5ab9e70727 (2 weeks ago), 2018-09-07 12:33:05 -0700     • Engine revision 58a1894a1c     • Dart version 2.1.0-dev.3.1.flutter-760a9690c2  [√] Android toolchain - develop for Android devices (Android SDK 27.0.3)     • Android SDK at C:\Users\gggustafson\AppData\Local\Android\sdk     • Android NDK location not configured (optional; useful for native profiling support)     • Platform android-27, build-tools 27.0.3     • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java     • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)     • All Android licenses accepted.  [√] Android Studio (version 3.1)     • Android Studio at C:\Program Files\Android\Android Studio     • Flutter plugin version 26.0.1     • Dart plugin version 173.4700     • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)  [√] VS Code, 64-bit edition (version 1.25.1)     • VS Code at C:\Program Files\Microsoft VS Code     • Flutter extension version 2.18.0  [√] Connected devices (1 available)     • SM G925V • 06157df60c7a8e20 • android-arm64 • Android 7.0 (API 24)  • No issues found! 

Any thoughts?

like image 780
Gus Avatar asked Sep 24 '18 16:09

Gus


People also ask

How to solved dart ui error when going to run flutter app?

dart file with Flutter Icon beside it and not the one with Dart Icon and the project should work just fine. If you are using VS Code then instead of hitting Run ( Ctrl + Alt + N ) go to Debug -> Start Debugging option or simply press F5 and errors will be gone.

What is dart UI?

dart:ui library Null safety. Built-in types and core primitives for a Flutter application. To use, import dart:ui . This library exposes the lowest-level services that Flutter frameworks use to bootstrap applications, such as classes for driving the input, graphics text, layout, and rendering subsystems.


Video Answer


1 Answers

When running the app, you will find 2 main.dart Choose the one with the flutter icon beside it enter image description here

like image 136
Mohammed Hassan Avatar answered Oct 12 '22 23:10

Mohammed Hassan