Adds Navigator.maybeOf to replace calling Navigator.of(context, nullOk: true), and removes the nullOk parameter. Also changes Navigator.of to return a non-nullable value, and removes many (120!) instances of the ! operator, reducing the possible places where a null dereference could occur.
* Add examples for LinearProgressIndicator
* Add examples for CircularProgressIndicator
* Change name Linear -> Circular
* Remove unnecessary changes
* Add images to docs
* Fix semi-colon bugs
* Fix trailing spaces
* Fix more semicolon bugs
* Remove imports in docs
* Remove error causing line breaks
* Add ticker providers
* Add more ticker providers
* Remove assets and combine samples
* Removed 6 samples
* Remove unnecessary animation
Co-authored-by: John Ryan <ryjohn@google.com>
* Remove unnecessary animation
Co-authored-by: John Ryan <ryjohn@google.com>
* Use material theme
Co-authored-by: John Ryan <ryjohn@google.com>
* Apply suggestions from code review
Co-authored-by: John Ryan <ryjohn@google.com>
This removes the last couple of doc references to the Window class in the framework, so that I can re-land the engine side change that removes the Window class (flutter/engine#22505).
* Added notificationListner sample code
* Fixed spacing
* fixed spacing
* Moved the variables into the Build method
* fixed typos
* Update packages/flutter/lib/src/widgets/notification_listener.dart
Co-authored-by: John Ryan <ryjohn@google.com>
* Update packages/flutter/lib/src/widgets/notification_listener.dart
Co-authored-by: John Ryan <ryjohn@google.com>
* Update packages/flutter/lib/src/widgets/notification_listener.dart
Co-authored-by: John Ryan <ryjohn@google.com>
* Update packages/flutter/lib/src/widgets/notification_listener.dart
Co-authored-by: John Ryan <ryjohn@google.com>
* Update packages/flutter/lib/src/widgets/notification_listener.dart
Co-authored-by: John Ryan <ryjohn@google.com>
* Update packages/flutter/lib/src/widgets/notification_listener.dart
Co-authored-by: John Ryan <ryjohn@google.com>
* Update packages/flutter/lib/src/widgets/notification_listener.dart
Co-authored-by: John Ryan <ryjohn@google.com>
Change the semantics of Actions.invoke so that if the action it finds is disabled, then it keeps looking for an ancestor Actions widgets that has a matching intent where the action is not disabled.