mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-29 21:55:58 +00:00
auto focus coin search field on exchange, on desktop
This commit is contained in:
parent
ac1a0af265
commit
653467b010
2 changed files with 4 additions and 2 deletions
|
@ -168,8 +168,9 @@ class _FixedRateMarketPairCoinSelectionViewState
|
|||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
child: TextField(
|
||||
autocorrect: Util.isDesktop ? false : true,
|
||||
enableSuggestions: Util.isDesktop ? false : true,
|
||||
autofocus: isDesktop,
|
||||
autocorrect: !isDesktop,
|
||||
enableSuggestions: !isDesktop,
|
||||
controller: _searchController,
|
||||
focusNode: _searchFocusNode,
|
||||
onChanged: filter,
|
||||
|
|
|
@ -125,6 +125,7 @@ class _FloatingRateCurrencySelectionViewState
|
|||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
child: TextField(
|
||||
autofocus: isDesktop,
|
||||
autocorrect: !isDesktop,
|
||||
enableSuggestions: !isDesktop,
|
||||
controller: _searchController,
|
||||
|
|
Loading…
Reference in a new issue