Skip to content

Commit

Permalink
[store_page]: change the button icons based on selected
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaDghosh committed Jan 2, 2024
1 parent 9499f9a commit 77bb87f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/app_center/lib/src/store/store_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ typedef StorePage = ({
final pages = <StorePage>[
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(ExplorePage.icon(true)),
leading: Icon(ExplorePage.icon(selected)),
title: Text(ExplorePage.label(context)),
),
pageBuilder: (_) => const ExplorePage(),
),
for (final category in displayedCategories)
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(category.icon(true)),
leading: Icon(category.icon(selected)),
title: Text(category.localize(AppLocalizations.of(context))),
),
pageBuilder: (_) => SearchPage(category: category.categoryName),
Expand All @@ -46,7 +46,7 @@ final pages = <StorePage>[
),
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(ManagePage.icon(true)),
leading: Icon(ManagePage.icon(selected)),
title: Text(ManagePage.label(context)),
trailing: Consumer(
builder: (context, ref, child) {
Expand All @@ -62,7 +62,7 @@ final pages = <StorePage>[
),
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(AboutPage.icon(true)),
leading: Icon(AboutPage.icon(selected)),
title: Text(AboutPage.label(context)),
),
pageBuilder: (_) => const AboutPage(),
Expand Down

0 comments on commit 77bb87f

Please sign in to comment.