Я новичок во Флаттере. Я хотел отобразить простой текст в приложении Flutter с помощью виджета «Текст», и, к моему удивлению, знак вопроса появился перед вопросом, а не после. Что может вызвать это? Вот фрагмент:
class _ScreenTwoState extends State<ScreenTwo> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Screen Two"),
centerTitle: true,
backgroundColor: Colors.green,
),
body: Container(
child: ListView(
children: <Widget>[
ListTile(
title: Text( _post != null ? "${_post.title}" : "Ooops.... error!!!",
//this is where the issue is
textAlign: TextAlign.center,
textDirection: TextDirection.rtl,//
style: TextStyle(
fontSize: 28.9,
color: Colors.black,
fontWeight: FontWeight.w400
//height: 50.0
),
),
),
ListTile(
title: RaisedButton(
child: Text("Send back to prev. screen"),
color: Colors.green,
highlightColor: Colors.redAccent,
textColor: Colors.white,
onPressed: (){
Navigator.pop(context, {
'info': _backTextFieldController.text
});
},
)
),
],
)
),
);
}}
Чтобы сделать это более ясным, это то, что я ожидаю
HOW TO FIND A BUS?
, но это то, что я вижу
?HOW TO FIND A BUS
Любая помощь будет оценена.