Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text Widget Error after update dart 2.5.0:- Failed assertion: line 269 pos 10: 'data != null' for text.dart package #3

Open
Tawfeekamr opened this issue Oct 24, 2019 · 3 comments

Comments

@Tawfeekamr
Copy link

Steps to Reproduce

Link to the Main code:

main.dart
I'm working in windows10...

  1. After upgrade flutter and Dart to 2.5.0, I get an error that tells me text.dart has a problem.
  2. I didn't import text.dart! it's come from Flutter widgets.
  3. the screenshot
    image

**Target Platform: Anroid
**Target OS version/browser: Android 9
**Devices: Nexus 6

Logs

[ +55 ms] I/flutter ( 7881): #390 _runMainZoned.. (dart:ui/hooks.dart:229:25)
[ +2 ms] I/flutter ( 7881): #395 _runMainZoned. (dart:ui/hooks.dart:221:5)
[ +1 ms] I/flutter ( 7881): #396 _startIsolate. (dart:isolate-patch/isolate_patch.dart:305:19)
[ +1 ms] I/flutter ( 7881): #397 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
[ +2 ms] I/flutter ( 7881): (elided 6 frames from class _AssertionError and package dart:async)

[√] Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [Version 10.0.18362.418], locale en-US)
• Flutter version 1.9.1+hotfix.6 at C:\flutter
• Framework revision 68587a0916 (6 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\totos\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.

[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 40.2.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[!] VS Code (version 1.39.1)
• VS Code at C:\Users\totos\AppData\Local\Programs\Microsoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

@Tawfeekamr
Copy link
Author

image
I fixed the issue using this solution.

gccpacman pushed a commit to node404/quizzler-flutter that referenced this issue Jun 1, 2020
use AndroidX with 29 API to prevent build failures
@ParsaRbn
Copy link

having same issue with iOS simulator

Screen Shot 2020-08-29 at 1 05 17 AM

@fvaladares
Copy link

fvaladares commented Aug 28, 2020 via email

rayneanderson pushed a commit to rayneanderson/quizzler-flutter that referenced this issue Nov 9, 2020
use AndroidX with 29 API to prevent build failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants