当前位置:网站首页>[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,),边栏推荐
- 一比特苦逼程序員的找工作經曆
- High-Resolution Network (篇一):原理刨析
- Why can't the start method be called repeatedly? But the run method can?
- 2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
- Database SQL language 02 connection query
- Arduino DY-SV17F自动语音播报
- d,ldc構建共享庫
- 2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
- Qtablewidget lazy load remaining memory, no card!
- Mathematical knowledge: divisible number inclusion exclusion principle
猜你喜欢
![[interview question] 1369 when can't I use arrow function?](/img/7f/84bba39965b4116f20b1cf8211f70a.png)
[interview question] 1369 when can't I use arrow function?

给你一个可能存在 重复 元素值的数组 numbers ,它原来是一个升序排列的数组,并按上述情形进行了一次旋转。请返回旋转数组的最小元素。【剑指Offer】

Arduino dy-sv17f automatic voice broadcast
![[Arduino experiment 17 L298N motor drive module]](/img/e2/4511eaa942e4a64c8ca2ee70162785.jpg)
[Arduino experiment 17 L298N motor drive module]

Why can't the start method be called repeatedly? But the run method can?
![[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait](/img/c6/9aee30cb935b203c7c62b12c822085.jpg)
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait

Telecom Customer Churn Prediction challenge

Detailed explanation of Q-learning examples of reinforcement learning

音程的知识的总结

MySQL foundation 04 MySQL architecture
随机推荐
C#应用程序界面开发基础——窗体控制(4)——选择类控件
Mathematical knowledge: step Nim game game game theory
openresty 缓存
Uniapp component -uni notice bar notice bar
数学知识:Nim游戏—博弈论
Kivy tutorial how to create drop-down lists in Kivy
Canvas drawing -- bingdd
Swiftui component Encyclopedia: using scenekit and swiftui to build interactive 3D pie charts (tutorial with source code)
2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
给你一个可能存在 重复 元素值的数组 numbers ,它原来是一个升序排列的数组,并按上述情形进行了一次旋转。请返回旋转数组的最小元素。【剑指Offer】
Concise analysis of redis source code 11 - Main IO threads and redis 6.0 multi IO threads
【第29天】给定一个整数,请你求出它的因子数
MySQL - database query - condition query
LDC Build Shared Library
如今少年已归来,人间烟火气最抚凡人心 复工了~
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
Installation and use of serial port packet capturing / cutting tool
Test shift right: Elk practice of online quality monitoring
MySQL basic usage 02
MySQL - database query - basic query