As a user, I want to be able to search for a kanji, kana or vocabulary word inside the glossary.
Requirements
UI
Search button (icon: `Icons.search_rounded) should be accessible on the AppBar.leading of the glossary main page
When search button action is tapped, the search bar should appear
Search bar
the focus should be moved to the search bar input and the keyboard action should be TextInputAction.search
As soon as text is entered the end of the search input should have a clear action button (icon: Icons.clear_rounded or Icons.close_rounded) that will empty the input.
When Enter or search is pressed, the search bar should close (keyboard also if needed) and list updated
The search should be done inside the glossary section currently selected
if the text entered is
latin letters, search on the significations and romaji fields
kanji/kana, search on the kanji or lecture_on/kon fields
Wireframes
Updated AppBar
![Screenshot 2023-10-29 at 5 52 35 PM](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/9457d691-a933-4f7a-aef4-c65db7c7bb78)
Search bar open
![Screenshot 2023-10-29 at 5 51 48 PM](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/b1e73387-8231-4e03-a3ab-e3dd66634fdb)
AppBar when search is set
![Screenshot 2023-10-29 at 5 51 31 PM](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/70580ea6-4425-40db-9423-6404b44173f8)
As a user, I want to be able to search for a kanji, kana or vocabulary word inside the glossary.
Requirements
TextInputAction.search
Icons.clear_rounded
orIcons.close_rounded
) that will empty the input.Enter
orsearch
is pressed, the search bar should close (keyboard also if needed) and list updatedWireframes
Updated AppBar
![Screenshot 2023-10-29 at 5 52 35 PM](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/9457d691-a933-4f7a-aef4-c65db7c7bb78)Search bar open
![Screenshot 2023-10-29 at 5 51 48 PM](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/b1e73387-8231-4e03-a3ab-e3dd66634fdb)AppBar when search is set
![Screenshot 2023-10-29 at 5 51 31 PM](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/70580ea6-4425-40db-9423-6404b44173f8)Dependencies
Depends on:
93
94