word_search: add button to clear content in search bar

This commit is contained in:
2025-07-17 00:14:22 +02:00
parent 08a78e4a2d
commit 235ff4c6d1
2 changed files with 9 additions and 1 deletions

View File

@@ -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 🔧

View File

@@ -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),