diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-21 23:10:29 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-21 23:10:29 +0530 |
| commit | 8a1f84014949be194c5303ef7cdd10876f42a838 (patch) | |
| tree | 0510f0d9756063e30f834af53e6f0476e8b3959b /lib/components/SearchableAppList.dart | |
| parent | c3a864ede61187256c1d5b726e41bb5243b0c7e2 (diff) | |
| parent | 94dbc54db0a9ac9e563a3cc1ce3263ebda5add16 (diff) | |
| download | daft-launcher-8a1f84014949be194c5303ef7cdd10876f42a838.tar.gz daft-launcher-8a1f84014949be194c5303ef7cdd10876f42a838.zip | |
Merge pull request #2 from phenax/feature/keyboard_focus0.0.2
Keyboard focus
Diffstat (limited to 'lib/components/SearchableAppList.dart')
| -rw-r--r-- | lib/components/SearchableAppList.dart | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/components/SearchableAppList.dart b/lib/components/SearchableAppList.dart index d9c7a17..3ac0d25 100644 --- a/lib/components/SearchableAppList.dart +++ b/lib/components/SearchableAppList.dart @@ -51,6 +51,7 @@ class _SearchableAppListState extends State<SearchableAppList> { child: TextField( enableSuggestions: false, controller: _inputController, + focusNode: widget.searchFieldFocus, decoration: InputDecoration( contentPadding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 8.0), hintStyle: TextStyle(color: Color(0x88D8DEE9)), @@ -77,8 +78,9 @@ class SearchableAppList extends StatefulWidget { List<Application> appList; void Function(Application) openApp; void Function(Application) openOptionsMenu; + FocusNode searchFieldFocus; - SearchableAppList({ this.appList, this.openApp, this.openOptionsMenu }): super(); + SearchableAppList({ this.appList, this.openApp, this.openOptionsMenu, this.searchFieldFocus }): super(); @override _SearchableAppListState createState() => _SearchableAppListState(); |
