mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +08:00
RepoSelector: Allow text to be easily cleared
This commit is contained in:
@ -136,9 +136,13 @@ class GitHostSetupRepoSelectorState extends State<GitHostSetupRepoSelector> {
|
|||||||
var textField = TextField(
|
var textField = TextField(
|
||||||
controller: _textController,
|
controller: _textController,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
decoration: const InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: 'Type to Search or Create a Repo',
|
hintText: 'Type to Search or Create a Repo',
|
||||||
border: OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
|
suffixIcon: IconButton(
|
||||||
|
onPressed: () => _textController.clear(),
|
||||||
|
icon: Icon(Icons.clear),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user