Skip to content

Commit f2971ed

Browse files
committed
feat(app_configuration): add leading icons to expansion tiles
- Add Icons.paid_outlined to advertisements tile - Add Icons.notifications_active_outlined to push notifications tile - Add Icons.dynamic_feed_outlined to feed tile - Add Icons.groups_outlined to community and engagement tile
1 parent e319ec6 commit f2971ed

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lib/app_configuration/view/tabs/features_configuration_tab.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ class _FeaturesConfigurationTabState extends State<FeaturesConfigurationTab> {
8383
builder: (context, expandedIndex, child) {
8484
const tileIndex = 0;
8585
return ExpansionTile(
86+
leading: Icon(
87+
Icons.paid_outlined,
88+
color: Theme.of(context).colorScheme.onSurface.withOpacity(
89+
0.7,
90+
),
91+
),
8692
key: ValueKey('advertisementsTile_$expandedIndex'),
8793
title: Text(l10n.advertisementsTab),
8894
subtitle: Text(
@@ -135,6 +141,12 @@ class _FeaturesConfigurationTabState extends State<FeaturesConfigurationTab> {
135141
builder: (context, expandedIndex, child) {
136142
const tileIndex = 1;
137143
return ExpansionTile(
144+
leading: Icon(
145+
Icons.notifications_active_outlined,
146+
color: Theme.of(context).colorScheme.onSurface.withOpacity(
147+
0.7,
148+
),
149+
),
138150
key: ValueKey('pushNotificationsTile_$expandedIndex'),
139151
title: Text(l10n.notificationsTab),
140152
subtitle: Text(
@@ -172,6 +184,12 @@ class _FeaturesConfigurationTabState extends State<FeaturesConfigurationTab> {
172184
builder: (context, expandedIndex, child) {
173185
const tileIndex = 2;
174186
return ExpansionTile(
187+
leading: Icon(
188+
Icons.dynamic_feed_outlined,
189+
color: Theme.of(context).colorScheme.onSurface.withOpacity(
190+
0.7,
191+
),
192+
),
175193
key: ValueKey('feedTile_$expandedIndex'),
176194
title: Text(l10n.feedTab),
177195
subtitle: Text(
@@ -305,6 +323,12 @@ class _FeaturesConfigurationTabState extends State<FeaturesConfigurationTab> {
305323
builder: (context, expandedIndex, child) {
306324
const tileIndex = 3;
307325
return ExpansionTile(
326+
leading: Icon(
327+
Icons.groups_outlined,
328+
color: Theme.of(context).colorScheme.onSurface.withOpacity(
329+
0.7,
330+
),
331+
),
308332
key: ValueKey('communityTile_$expandedIndex'),
309333
title: Text(l10n.communityAndEngagementTitle),
310334
subtitle: Text(

0 commit comments

Comments
 (0)