次のように特定のコードによって実装メインコントローラ
テキストフィールド(
//输入键盘类型 KEYBOARDTYPE:TextInputType.text、 オートフォーカス:真は、 装飾:InputDecoration( 境界:OutlineInputBorder( borderRadius:BorderRadius.circular(30 )、 borderSide:BorderSide.none)、 )、 onChangedイベント:(値){ この._keyword =値; } 、 コントローラ:TextEditingController.fromValue(TextEditingValue( テキスト:' $ {this._keyword == NULL "":this._keyword}?'、 //キーワードが空であるかどうかを判断 //は、最後のカーソルのまま 選択:TextSelection.fromPosition(TextPosition( アフィニティ:TextAffinity.downstreamは、 オフセット:' $ {}をthis._keyword ' .LENGTH))))、 )、