Skip to content

Commit

Permalink
Add semantic labels for search episode button and text field.
Browse files Browse the repository at this point in the history
  • Loading branch information
amugofjava committed Oct 10, 2024
1 parent 5e02274 commit eb8dcb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/core/environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Environment {
static const _applicationName = 'Anytime';
static const _applicationUrl = 'https://github.com/amugofjava/anytime_podcast_player';
static const _projectVersion = '1.3.9';
static const _build = '156';
static const _build = '158';

static var _agentString = userAgentAppString;

Expand Down
8 changes: 6 additions & 2 deletions lib/ui/podcast/podcast_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ class _PodcastTitleState extends State<PodcastTitle> with SingleTickerProviderSt
showEpisodeSearch = !showEpisodeSearch;
});
},
icon: const Icon(
icon: Icon(
Icons.search,
semanticLabel: L.of(context)!.search_episodes_label,
),
visualDensity: VisualDensity.compact,
),
Expand Down Expand Up @@ -538,7 +539,10 @@ class _PodcastTitleState extends State<PodcastTitle> with SingleTickerProviderSt
contentPadding: const EdgeInsets.all(0.0),
prefixIcon: const Icon(Icons.search),
suffixIcon: IconButton(
icon: const Icon(Icons.close),
icon: Icon(
Icons.close,
semanticLabel: L.of(context)!.clear_search_button_label,
),
onPressed: () {
_episodeSearchController.clear();
podcastBloc.podcastSearchEvent('');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: anytime
description: Anytime Podcast Player

version: 1.3.9+156
version: 1.3.9+158

environment:
sdk: '>=3.2.0 <4.0.0'
Expand Down

0 comments on commit eb8dcb7

Please sign in to comment.