当前位置:网站首页>[error record] the shutter component reports an error (no directionality widget found. | richtext widgets require a directionality)
[error record] the shutter component reports an error (no directionality widget found. | richtext widgets require a directionality)
2022-07-03 01:33:00 【Programmer community】
One 、 Error message
Error message :
Performing hot reload...Syncing files to device Pixel 2...Reloaded 0 libraries in 353ms.======== Exception caught by widgets library =======================================================The following assertion was thrown building Text(" Animation state : null"):No Directionality widget found.RichText widgets require a Directionality widget ancestor.The specific widget that could not find a Directionality ancestor was: RichText softWrap: wrapping at box width maxLines: unlimited text: " Animation state : null" dirtyThe ownership chain for the affected widget is: "RichText ← Text ← Column ← Padding ← Container ← AnimationApp ← [root]"Typically, the Directionality widget is introduced by the MaterialApp or WidgetsApp widget at the top of your application widget tree. It determines the ambient reading direction and is used, for example, to determine how to lay out text, how to interpret "start" and "end" values, and to resolve EdgeInsetsDirectional, AlignmentDirectional, and other *Directional objects.The relevant error-causing widget was: Text file:///D:/002_Project/002_Android_Learn/flutter_animation/lib/main.dart:118:11When the exception was thrown, this was the stack: #0 debugCheckHasDirectionality.<anonymous closure> (package:flutter/src/widgets/debug.dart:272:7)#1 debugCheckHasDirectionality (package:flutter/src/widgets/debug.dart:292:4)#2 RichText.createRenderObject (package:flutter/src/widgets/basic.dart:5539:37)#3 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5423:28)#4 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6166:11)...============================================================================================================ Exception caught by widgets library =======================================================No Directionality widget found.The relevant error-causing widget was: Text file:///D:/002_Project/002_Android_Learn/flutter_animation/lib/main.dart:120:11============================================================================================================ Exception caught by rendering library =====================================================A RenderFlex overflowed by 199358 pixels on the bottom.The relevant error-causing widget was: Column file:///D:/002_Project/002_Android_Learn/flutter_animation/lib/main.dart:96:14====================================================================================================
Error component :
Text(" Animation state : $animationStatus"),Text(" Animation values : $animationValue"),Two 、 Solution
Flutter in Text Component needs to set text direction ;
The revised code is :
Text(" Animation state : $animationStatus", textDirection: TextDirection.ltr,),Text(" Animation values : $animationValue", textDirection: TextDirection.ltr,),边栏推荐
- SwiftUI 组件大全之使用 SceneKit 和 SwiftUI 构建交互式 3D 饼图(教程含源码)
- 音程的知识的总结
- Button wizard play strange learning - automatic return to the city route judgment
- Give you an array numbers that may have duplicate element values. It was originally an array arranged in ascending order, and it was rotated once according to the above situation. Please return the sm
- [Arduino experiment 17 L298N motor drive module]
- Leetcode 2097 - Legal rearrangement of pairs
- [shutter] animation animation (the core class of shutter animation | animation | curvedanimation | animationcontroller | tween)
- dotConnect for PostgreSQL数据提供程序
- Installation and use of serial port packet capturing / cutting tool
- 简易分析fgui依赖关系工具
猜你喜欢

Scheme and practice of cold and hot separation of massive data

一位苦逼程序员的找工作经历

传输层 TCP主要特点和TCP连接

MySQL foundation 04 MySQL architecture

C#应用程序界面开发基础——窗体控制(1)——Form窗体
![[fh-gfsk] fh-gfsk signal analysis and blind demodulation research](/img/8a/8ca80f51a03341c982d52980c54b01.png)
[fh-gfsk] fh-gfsk signal analysis and blind demodulation research

海量数据冷热分离方案与实践

Using tensorboard to visualize the model, data and training process

Top ten regular spot trading platforms 2022

QTableWidget懒加载剩内存,不卡!
随机推荐
MySQL --- 数据库查询 - 条件查询
Now that the teenager has returned, the world's fireworks are the most soothing and ordinary people return to work~
[C language] detailed explanation of pointer and array written test questions
Leetcode 2097 - Legal rearrangement of pairs
MySQL foundation 07-dcl
ThinkPHP+Redis实现简单抽奖
Niu Ke swipes questions and clocks in
Daily topic: movement of haystack
并发编程的三大核心问题 -《深入理解高并发编程》
leetcode 2097 — 合法重新排列数对
C语言课程信息管理系统
数学知识:Nim游戏—博弈论
按鍵精靈打怪學習-多線程後臺坐標識別
wirehark数据分析与取证A.pacapng
[FPGA tutorial case 5] ROM design and Implementation Based on vivado core
dotConnect for PostgreSQL数据提供程序
[flutter] icons component (fluttericon Download Icon | customize SVG icon to generate TTF font file | use the downloaded TTF icon file)
Look at how clothing enterprises take advantage of the epidemic
Mathematical knowledge: step Nim game game game theory
按键精灵打怪学习-自动回城路线的判断