当前位置:网站首页>[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,),边栏推荐
- What are the trading forms of spot gold and what are the profitable advantages?
- How is the mask effect achieved in the LPL ban/pick selection stage?
- MySQL --- 数据库查询 - 条件查询
- C application interface development foundation - form control (3) - file control
- [机缘参悟-36]:鬼谷子-飞箝篇 - 面对捧杀与诱饵的防范之道
- What is tone. Diao's story
- [self management] time, energy and habit management
- Leetcode 2097 - Legal rearrangement of pairs
- Kivy tutorial how to create drop-down lists in Kivy
- Is there anything in common between spot gold and spot silver
猜你喜欢
![[Androd] Gradle 使用技巧之模块依赖替换](/img/5f/968db696932f155a8c4a45f67135ac.png)
[Androd] Gradle 使用技巧之模块依赖替换

leetcode 6103 — 从树中删除边的最小分数

Telecom Customer Churn Prediction challenge

音程的知识的总结

Qtablewidget lazy load remaining memory, no card!

MySQL --- 数据库查询 - 条件查询

MySQL foundation 05 DML language

Using tensorboard to visualize the model, data and training process

leetcode 2097 — 合法重新排列数对

【QT】自定义控件的封装
随机推荐
wirehark数据分析与取证A.pacapng
How wide does the dual inline for bread board need?
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait
Using tensorboard to visualize the model, data and training process
Test shift right: Elk practice of online quality monitoring
【面试题】1369- 什么时候不能使用箭头函数?
Niu Ke swipes questions and clocks in
leetcode 6103 — 从树中删除边的最小分数
产业互联网的产业范畴足够大 消费互联网时代仅是一个局限在互联网行业的存在
Mathematical knowledge: step Nim game game game theory
JDBC courses
leetcode 2097 — 合法重新排列数对
Leetcode 2097 - Legal rearrangement of pairs
2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
Work experience of a hard pressed programmer
Pytest learning notes (12) -allure feature · @allure Step () and allure attach
Qtablewidget lazy load remaining memory, no card!
[interview question] 1369 when can't I use arrow function?
英语常用词汇
如今少年已归来,人间烟火气最抚凡人心 复工了~