mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 11:33:34 +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(
|
||||
controller: _textController,
|
||||
maxLines: 1,
|
||||
decoration: const InputDecoration(
|
||||
decoration: InputDecoration(
|
||||
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