Skip to content

Commit d5036db

Browse files
committed
style(account): use theme-aware icon color for unfollow actions
- Replace hardcoded red color with theme's error color for unfollow icons - Remove 'const' keyword from Icon widgets to allow theme color updates - Update made across multiple list pages: countries, sources, and topics
1 parent 4b5fa6c commit d5036db

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/account/view/manage_followed_items/countries/followed_countries_list_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ class FollowedCountriesListPage extends StatelessWidget {
8585
),
8686
title: Text(country.name),
8787
trailing: IconButton(
88-
icon: const Icon(
88+
icon: Icon(
8989
Icons.remove_circle_outline,
90-
color: Colors.red,
90+
color: Theme.of(context).colorScheme.error,
9191
),
9292
tooltip: l10n.unfollowCountryTooltip(country.name),
9393
onPressed: () {

lib/account/view/manage_followed_items/sources/followed_sources_list_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ class FollowedSourcesListPage extends StatelessWidget {
8282
overflow: TextOverflow.ellipsis,
8383
),
8484
trailing: IconButton(
85-
icon: const Icon(
85+
icon: Icon(
8686
Icons.remove_circle_outline,
87-
color: Colors.red,
87+
color: Theme.of(context).colorScheme.error,
8888
),
8989
tooltip: l10n.unfollowSourceTooltip(source.name),
9090
onPressed: () {

lib/account/view/manage_followed_items/topics/followed_topics_list_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ class FollowedTopicsListPage extends StatelessWidget {
9090
overflow: TextOverflow.ellipsis,
9191
),
9292
trailing: IconButton(
93-
icon: const Icon(
93+
icon: Icon(
9494
Icons.remove_circle_outline,
95-
color: Colors.red,
95+
color: Theme.of(context).colorScheme.error,
9696
),
9797
tooltip: l10n.unfollowTopicTooltip(topic.name),
9898
onPressed: () {

0 commit comments

Comments
 (0)