📜  endicon flutter textfeild - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:06.777000             🧑  作者: Mango

代码示例1
TextField(
  controller: _controller,
  decoration: InputDecoration(
    hintText: "Enter a message",
    suffixIcon: IconButton(
      onPressed: () => _controller.clear(),
      icon: Icon(Icons.clear),
    ),
  ),
)