Skip to content

Commit b7660d9

Browse files
committed
fix(communities): make feedback details button always clickable
- Remove check for non-null and non-empty feedback details - Ensure the button is always enabled, providing a consistent user experience - Improve accessibility by allowing users to always access the feedback details dialog
1 parent c9cf9e3 commit b7660d9

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

lib/community_management/widgets/community_action_buttons.dart

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,21 +182,16 @@ class CommunityActionButtons<T> extends StatelessWidget {
182182
List<PopupMenuEntry<String>> overflowMenuItems,
183183
) {
184184
// Primary Action
185-
final hasDetails =
186-
appReview.feedbackDetails != null &&
187-
appReview.feedbackDetails!.isNotEmpty;
188185
visibleActions.add(
189186
IconButton(
190187
visualDensity: VisualDensity.compact,
191188
iconSize: 20,
192189
icon: const Icon(Icons.comment_outlined),
193190
tooltip: l10n.viewFeedbackDetails,
194-
onPressed: hasDetails
195-
? () => showDialog<void>(
196-
context: context,
197-
builder: (_) => AppReviewDetailsDialog(appReview: appReview),
198-
)
199-
: null,
191+
onPressed: () => showDialog<void>(
192+
context: context,
193+
builder: (_) => AppReviewDetailsDialog(appReview: appReview),
194+
),
200195
),
201196
);
202197

0 commit comments

Comments
 (0)