No Directionality widget found. [Error Solved] - (Flutter Tutorials)

Опубликовано: 25 Май 2026
на канале: Fix Error Quickly
6,546
46

Learn Mobile Development in Flutter [Full Course] ---    • Flutter Introduction - (Flutter Tutorials)  
----------------------------*--------------------------------*


══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (23277): The following assertion was thrown building Text("Text 2"):
I/flutter (23277): No Directionality widget found.
I/flutter (23277): RichText widgets require a Directionality widget ancestor.
I/flutter (23277): The specific widget that could not find a Directionality ancestor was:
I/flutter (23277): RichText
I/flutter (23277): The ownership chain for the affected widget is: "RichText ← Text ← Column ← [root]"
I/flutter (23277): Typically, the Directionality widget is introduced by the MaterialApp or WidgetsApp widget at the
I/flutter (23277): top of your application widget tree. It determines the ambient reading direction and is used, for
I/flutter (23277): example, to determine how to lay out text, how to interpret "start" and "end" values, and to resolve
I/flutter (23277): EdgeInsetsDirectional, AlignmentDirectional, and other *Directional objects.

----------------------------*--------------------------------*
Hire us on Fiverr
https://www.fiverr.com/tameem_rafay/d...
------------------------------*-------------------------------*