amugofjava / anytime_podcast_player

Simple, easy to use Podcast player app written in Flutter and Dart.
BSD 3-Clause "New" or "Revised" License
376 stars 99 forks source link

Clear text button in search UI should restore user keyboard #80

Closed IvanVnucec closed 1 year ago

IvanVnucec commented 1 year ago

To recreate the issue to the following:

  1. Open app
  2. Click on the Search icon (top right)
  3. Type some string into search bar
  4. Click the back button on your phone (not on the screen)
  5. Click on the Clear button (X symbol)

The app is clearing the search query and restoring focus as needed but the keyboard should pop up for user to input its search query again.

To implement this append the SystemChannels.textInput.invokeMethod('TextInput.show'); to the lib/ui/search/search_bar.dart:

onPressed: () {
  _searchController.clear();
  FocusScope.of(context).requestFocus(FocusNode());
  SystemChannels.textInput.invokeMethod('TextInput.show');
}),
amugofjava commented 1 year ago

Hi,

Thanks for raising this issue and providing the solution. I will incorporate this into the next release.

IvanVnucec commented 1 year ago

Hey, no problem. Thanks for being open source.

On Thu, Dec 15, 2022, 13:32 Ben Hills @.***> wrote:

Hi,

Thanks for raising this issue and providing the solution. I will incorporate this into the next release.

— Reply to this email directly, view it on GitHub https://github.com/amugofjava/anytime_podcast_player/issues/80#issuecomment-1352994322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMB7OPXR5SATSKC5KSWYAOTWNMFXJANCNFSM6AAAAAAS4JQBVI . You are receiving this because you authored the thread.Message ID: @.***>

amugofjava commented 1 year ago

This has been added and pushed to master. Thank you.