Icon should use an enum rather than an int for size

Material design icons are defined to work at specific sizes: 18, 24, 36, 48.
The current API doesn't reflect that and just takes a size int. If an invalid
size is chosen an error is printed to the console and no icon shows up.

Fixes #1816
10 files changed
tree: 90053e8473cd100c97538e50dee05213df1dcbfa
  1. base/
  2. build/
  3. examples/
  4. mojo/
  5. services/
  6. skia/
  7. sky/
  8. skysprites/
  9. testing/
  10. third_party/
  11. tools/
  12. travis/
  13. ui/
  14. url/
  15. .clang-format
  16. .gitattributes
  17. .gitignore
  18. .gn
  19. .travis.yml
  20. AUTHORS
  21. BUILD.gn
  22. CONTRIBUTING.md
  23. DEPS
  24. LICENSE
  25. README.md
README.md

Flutter

Build Status

Flutter is a new way to build high-performance, cross-platform mobile apps. Flutter is optimized for today‘s, and tomorrow’s, mobile devices. We are focused on low-latency input and high frame rates on Android and iOS.

Community

Join us on IRC at #flutter on Freenode or join our mailing list, flutter-dev@googlegroups.com.