Use `@required` for onPressed and onChanged (#4534)

We now use the `@required` annotation to encourage developers to
explicitly set onPressed and onChanged callbacks to null when that would
disable the widget.

Fixes #287
23 files changed
tree: e787a8088e766732513835fd6d775fbf2aea91ec
  1. bin/
  2. dev/
  3. examples/
  4. packages/
  5. .analysis_options
  6. .travis.yml
  7. AUTHORS
  8. CONTRIBUTING.md
  9. ISSUE_TEMPLATE.md
  10. LICENSE
  11. README.md
README.md

Flutter

Build Status Issue Stats Issue Stats

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.

Flutter is an early-stage open-source project. We are still missing core features like accessibility, text input, localization, and more. However, you can build demos and examples today. We hope you try it out and send us feedback.

Community

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