[英]how to set position of cursor in bottom right of textarea in textfield in flutter
您可以在最后设置 TextField 属性 textAlign,希望这对您有用,谢谢
导入“包:flutter/material.dart”;
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Center(
child: Container(
width: 290,
padding: EdgeInsets.all(10.0),
child: TextField(
autocorrect: true,
textAlign: TextAlign.end,
decoration: InputDecoration(
)))))));
}
}
textarea {
text-align: right;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.