Fix unsupported devices not showing "Enable x" if there are no other devices (#9428)

In the list of devices we include devices that are not supported/enabled for the current platform, allowing you to enable them. However, the logic here would skip the entire device table if there are no enabled/supported devices, which would cause nothing to show up if there are none already enabled.

This changes the logic so the table is always shown if there are either kind of device, and only shows the help text if none are enabled.

Fixes https://github.com/Dart-Code/Dart-Code/issues/5661
1 file changed
tree: 8cb51f2c7ca070c5ff2f8c3713f9b4e8145692b5
  1. .github/
  2. .vscode/
  3. _markdown_images/
  4. docs/
  5. packages/
  6. third_party/
  7. tool/
  8. .gitattributes
  9. .gitignore
  10. analysis_options.yaml
  11. AUTHORS
  12. BETA_TESTING.md
  13. CODE_OF_CONDUCT.md
  14. CODEOWNERS
  15. CONTRIBUTING.md
  16. DEBUGGING.md
  17. devtools_options.yaml
  18. DOCUMENTATION.md
  19. flutter-candidate.txt
  20. GEMINI.md
  21. LICENSE
  22. pubspec.yaml
  23. README.md
  24. STYLE.md
  25. TESTING.md
  26. TRIAGE.md
README.md

Dart & Flutter DevTools

Build Status OpenSSF Scorecard

What is this?

Dart & Flutter DevTools is a suite of performance tools for Dart and Flutter.

Getting started

For documentation on installing and trying out DevTools, please see our docs.

Contributing and development

Contributions welcome! See our contributing page for an overview of how to build and contribute to the project.

Terms and Privacy

By using Dart DevTools, you agree to the Google Terms of Service. To understand how we use data collected from this service, see the Google Privacy Policy.