任何人都可以告诉我这个错误
谢谢 。
Text("مرحبا بالعالم",
textAlign: TextAlign.right,
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 17),
textDirection: TextDirection.ltr,
),
error: The getter 'ltr' isn't defined for the class 'TextDirection'
Error
最佳答案
我知道它的方式为时已晚,但对于任何有同样问题的人,请执行此操作
import 'dart:ui' as ui;
然后使用textDirection: ui.TextDirection.ltr
在您的文本小部件中
关于dart - 错误 : The getter 'ltr' isn't defined for the class 'TextDirection' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55740952/