发布于 4年前

flutter 输入框错误提示

TextField(
  decoration: InputDecoration(
      // 提示文本
      hintText: "请输入姓名",
      // 错误提示
      errorText: '该参数不能为空'
  ),
)
©2020 edoou.com   京ICP备16001874号-3