文本字段方向是rtl或ltr只适用于所有行在笔记应用程序的领域检测每一行方向我怎么做?我尝试一些模块自动检测,但如果行1有ar语言,方向将是rtl,如果行2有en语言,所有行的方向将是ltr
dced5bon1#
试试这些
new Directionality( textDirection: TextDirection.rtl, child: TextField( textAlign: TextAlign.right, controller: _textEdittingControler_bookName, autofocus: true, decoration: new InputDecoration( labelText: "label Text", hintText: "hint Text" ), )
更多信息https://api.flutter.dev/flutter/widgets/Directionality-class.html
1条答案
按热度按时间dced5bon1#
试试这些
更多信息https://api.flutter.dev/flutter/widgets/Directionality-class.html