word_search: add button to clear content in search bar
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
- Added a bubble in the top bar of word search results to indicate how many times it has been searched before.
|
||||
- Added basic support for Android's [Predictive Back](https://developer.android.com/design/ui/mobile/guides/patterns/predictive-back) feature.
|
||||
- Allow inline expansion of antonyms "See also" references in the word search results.
|
||||
- Added a button to clear the content of the search bar in the word query view.
|
||||
|
||||
## Changes 🔧
|
||||
|
||||
|
||||
@@ -52,8 +52,15 @@ class GlobalSearchBar extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.close),
|
||||
color: Colors.red,
|
||||
onPressed: () {
|
||||
textController.clear();
|
||||
},
|
||||
),
|
||||
const LanguageSelector(),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.mode),
|
||||
|
||||
Reference in New Issue
Block a user