Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在参数中将控制器作为字符串传递,但控制器是 TextEditingController 类型。如何将控制器的类型更改为字符串?
您需要访问该text属性。
text
TextEditingController.text
将其替换为您的控制器名称。IE
usernameController.text