diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-21 23:07:33 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-21 23:07:33 +0530 |
| commit | f41510dc4e54a8c15c58a4d7ca5ecc5c023b2285 (patch) | |
| tree | bea7eae674157e07fd90ee2b98924a538d19ba07 /lib/components | |
| parent | 0ec3ce0089cee442d8a8152befeea5213c412b14 (diff) | |
| download | daft-launcher-f41510dc4e54a8c15c58a4d7ca5ecc5c023b2285.tar.gz daft-launcher-f41510dc4e54a8c15c58a4d7ca5ecc5c023b2285.zip | |
Implements node focus in/out
Diffstat (limited to '')
| -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(); |
