当前位置:网站首页>[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,),边栏推荐
- Machine learning terminology
- [androd] module dependency replacement of gradle's usage skills
- CF1617B Madoka and the Elegant Gift、CF1654C Alice and the Cake、 CF1696C Fishingprince Plays With Arr
- leetcode刷题_两数之和 II - 输入有序数组
- MySQL - database query - condition query
- leetcode 6103 — 从树中删除边的最小分数
- Kivy tutorial - example of using Matplotlib in Kivy app
- openresty 缓存
- Mathematical knowledge: divisible number inclusion exclusion principle
- [fh-gfsk] fh-gfsk signal analysis and blind demodulation research
猜你喜欢

音程的知识的总结

Daily topic: movement of haystack

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

After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-9

【数据挖掘】任务6:DBSCAN聚类

Using tensorboard to visualize the model, data and training process

【C语言】指针与数组笔试题详解

Basic concept and implementation of overcoming hash

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

【QT】自定义控件的封装
随机推荐
C#应用程序界面开发基础——窗体控制(2)——MDI窗体
[technology development-23]: application of DSP in future converged networks
看疫情之下服装企业如何顺势而为
Daily topic: movement of haystack
High-Resolution Network (篇一):原理刨析
看完这篇 教你玩转渗透测试靶机Vulnhub——DriftingBlues-9
Qtablewidget lazy load remaining memory, no card!
【系统分析师之路】第五章 复盘软件工程(开发模型开发方法)
Arduino DY-SV17F自动语音播报
The difference between tail -f, tail -f and tail
[自我管理]时间、精力与习惯管理
产业互联网的产业范畴足够大 消费互联网时代仅是一个局限在互联网行业的存在
MySQL --- 数据库查询 - 条件查询
Mathematical knowledge: divisible number inclusion exclusion principle
Uniapp component -uni notice bar notice bar
Expérience de recherche d'emploi d'un programmeur difficile
MySQL basics 03 introduction to MySQL types
Meituan dynamic thread pool practice ideas, open source
Key wizard hit strange learning - automatic path finding back to hit strange points
英语常用词汇