damondouglas commented on code in PR #23477:
URL: https://github.com/apache/beam/pull/23477#discussion_r990260031
##########
playground/frontend/lib/modules/examples/components/example_list/example_item_actions.dart:
##########
@@ -36,6 +36,8 @@ class ExampleItemActions extends StatelessWidget {
return Row(
children: [
if (example.isMultiFile) multifilePopover,
+ if (example.complexity != Complexity.unspecified)
+ ComplexityWidget(complexity: example.complexity),
Review Comment:
May we consider having a `List<Widget>` variable and applying these if
statements before returning `Row`? My thinking is that it might make the code
more readable. However, I trust your judgement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]