const TextField({
Key key,
this.controller, // 控制正在編輯文本
this.focusNode, // 獲取鍵盤焦點
this.decoration = const InputDecoration(), // 邊框裝飾
TextInputType keyboardType, // 鍵盤類型
this.textInputAction, // 鍵盤的操作按鈕類型
this.textCapitalization = TextCapitalization.none, // 配置大小寫鍵盤
this.style, // 輸入文本樣式
this.textAlign = TextAlign.start, // 對齊方式
this.textDirection, // 文本方向
this.autofocus = false, // 是否自動對焦
this.obscureText = false, // 是否隱藏內容,例如密碼格式
this.autocorrect = true, // 是否自動校正
this.maxLines = 1, // 最大行數
this.maxLength, // 允許輸入的最大長度
this.maxLengthEnforced = true, // 是否允許超過輸入最大長度
this.onChanged, // 文本內容變更時回調
this.onEditingComplete, // 提交內容時回調
this.onSubmitted, // 用戶提示完成時回調
this.inputFormatters, // 驗證及格式
this.enabled, // 是否不可點擊
this.cursorWidth = 2.0, // 光標寬度
this.cursorRadius, // 光標圓角弧度
this.cursorColor, // 光標顏色
this.keyboardAppearance, // 鍵盤亮度
this.scrollPadding = const EdgeInsets.all(20.0), // 滾動到視圖中時,填充邊距
this.enableInteractiveSelection, // 長按是否展示【剪切/復制/粘貼菜單LengthLimitingTextInputFormatter】
this.onTap, // 點擊時回調
})