当前位置:网站首页>[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,),边栏推荐
- Detailed explanation of Q-learning examples of reinforcement learning
- MySQL --- 数据库查询 - 条件查询
- What operations need attention in the spot gold investment market?
- Using tensorboard to visualize the model, data and training process
- Learn the five skills you need to master in cloud computing application development
- How is the mask effect achieved in the LPL ban/pick selection stage?
- 【数据挖掘】任务5:K-means/DBSCAN聚类:双层正方形
- 测试右移:线上质量监控 ELK 实战
- Meituan dynamic thread pool practice ideas, open source
- C#应用程序界面开发基础——窗体控制(4)——选择类控件
猜你喜欢

Installation and use of serial port packet capturing / cutting tool

Using tensorboard to visualize the model, data and training process

【QT】自定义控件的封装

一比特苦逼程序員的找工作經曆

Pytest learning notes (12) -allure feature · @allure Step () and allure attach

QTableWidget懒加载剩内存,不卡!

Leetcode 6103 - minimum fraction to delete an edge from the tree

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

dotConnect for PostgreSQL数据提供程序

一位苦逼程序员的找工作经历
随机推荐
[androd] module dependency replacement of gradle's usage skills
d,ldc构建共享库
Look at how clothing enterprises take advantage of the epidemic
Steps to obtain SSL certificate private key private key file
一比特苦逼程序員的找工作經曆
Button wizard play strange learning - go back to the city to buy medicine and add blood
Leetcode 2097 - Legal rearrangement of pairs
Key wizard play strange learning - multithreaded background coordinate recognition
Create your first Kivy program Hello word (tutorial includes source code)
[flutter] icons component (fluttericon Download Icon | customize SVG icon to generate TTF font file | use the downloaded TTF icon file)
C#应用程序界面开发基础——窗体控制(3)——文件类控件
Key wizard hit strange learning - automatic path finding back to hit strange points
ThinkPHP+Redis实现简单抽奖
MySQL basic usage 02
What are the trading forms of spot gold and what are the profitable advantages?
Daily topic: movement of haystack
MySQL - database query - condition query
【数据挖掘】任务6:DBSCAN聚类
dotConnect for PostgreSQL数据提供程序
uniapp组件-uni-notice-bar通告栏