3164 Commits

Author SHA1 Message Date
Yazeed AlKhalaf
bcdee0ac74
🚀 AdoptAWidget: IgnorePointer (#70185)
*  Add IgnorePointer Widget dartpad

* 🐛 Fix grammatical issues in docs of IgnorePointer

*  Remove trailing spaces
2020-11-23 09:45:37 -08:00
Chulwoo Park
de56c6ad72
Remove unnecessary argument from Row and Column constructor comments (#71041) 2020-11-22 12:28:06 -08:00
Michael Goderbauer
7a3a29e71f
Fixes Intrinsics for RenderParagraph and RenderWrap (#70656) 2020-11-20 17:24:58 -08:00
Kate Lovett
63e328f7f0
Fix pointer scroll for nested NeverScrollables (#70953) 2020-11-20 17:18:04 -08:00
Ian Hickson
d4b871e1a7
Minor documentation fixes (#70501) 2020-11-20 14:28:03 -08:00
Greg Spencer
de884f1afe
Remove the nullOk parameter from Navigator.of and add Navigator.maybeOf (#70726)
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.
2020-11-20 09:10:46 -08:00
Kate Lovett
f4a0511e8b
Re-land 'Default Keyboard ScrollActions with PrimaryScrollController' (#70893) 2020-11-19 17:48:04 -08:00
Chinmoy
830bdfa301
added none property in a DismissDirection (#68987) 2020-11-18 13:28:03 -08:00
Jim Graham
e803b13f01
Revert "Re-land 'Default Keyboard ScrollActions with PrimaryScrollController' (#70401)" (#70675)
This reverts commit 9b56241eef3a81bfe4e1ff72cc453a7693861944.
2020-11-16 22:55:59 -08:00
Kate Lovett
9b56241eef
Re-land 'Default Keyboard ScrollActions with PrimaryScrollController' (#70401) 2020-11-16 14:47:04 -06:00
Ian Hickson
6cff33832e
More lints (#70500) 2020-11-16 11:07:37 -08:00
IsmailAbdirahman
9a2bf0e70f
AdoptAWidget: NotificationListener (#69524)
* 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>
2020-11-16 10:30:41 -08:00
creativecreatorormaybenot
85f0aea87e
Add stackTrace to AsyncSnapshot (#69507) 2020-11-13 17:13:02 -08:00
Greg Spencer
b47126df6c
Allow propagation to ancestor actions if actions lower down are disabled (#70404)
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.
2020-11-12 17:15:54 -08:00
Michael Goderbauer
cca1215939
Properly initialize RestorationManager in the TestBinding (#70398) 2020-11-12 13:59:05 -08:00
Michael Goderbauer
c7f092515c
Fix return type of ContextAction.invoke (#70397) 2020-11-12 13:54:03 -08:00
Todd Volkert
f8d2f58b52
Ignore DismissIntent when barrier is not dismissible (#70156) 2020-11-12 11:45:32 -08:00
Greg Spencer
86f9ab511e
Revert usages of the binding's platformDispatcher to use window instead (#70319)
This reverts usages of the binding's platformDispatcher to use window again temporarily, because there isn't a TestPlatformDispatcher yet, and so some tests were failing because they mocked the TestWindow to return certain things (locales) that were returning the real values instead of the test values.

Once I've created a TestPlatformDispatcher to allow fake data to be passed to it, we can go back to using the platformDispatcher in all of these places
2020-11-12 11:17:00 -08:00
Zachary Anderson
3fce16c329
Revert "Default Keyboard ScrollActions with PrimaryScrollController (#69795)" (#70391)
This reverts commit 1f0df54553bab852026a2801ce3921a2ba493fab.
2020-11-12 09:49:12 -08:00
Kate Lovett
1f0df54553
Default Keyboard ScrollActions with PrimaryScrollController (#69795) 2020-11-11 15:29:05 -08:00
Chinmay Kabi
6f70a29c36
AdoptAWidget: WillPopScope (#69563)
* Update WillPopScope API Docs

* Update WillPopScope API Docs

* Update WillPopScope API Docs template fix

* Refactoring dartpad sample

* Refactoring dartpad sample

* Remove trailing spaces

* Minor build fix

* Remove space

* Change the dartpad sample and other minor changes

* Change the dartpad example

* Remove trailing character

* refactor code to dart preamble

* adding uncleared variable

* adding uncleared variable

* Implemented requested changes

* Implemented requested changes

* empty commit

* minor changes

Co-authored-by: Chinmay Kabi <chinmaykabi@gmail.com>
2020-11-11 10:01:46 -08:00
Greg Spencer
bbc0161669
Remove references to Window, and switch usages to PlatformDispatcher or SingletonFlutterWindow (#69617)
* Remove references to dart:ui.Window, and point usages to PlatformDispatcher or SingletonFlutterWindow, as appropriate

* remove new test platform dispatchers

* Amend documentation
2020-11-09 15:26:29 -08:00
redsolver
3b7718c27d
AdoptAWidget: Table (#69488) (#69588)
* Added Dartpad sample for Table widget

* Changed template to stateless_widget_scaffold

* Removed trailing character
2020-11-09 15:20:42 -08:00
chunhtai
0bc0cc6192
Fix crash when widgetspan does not produce a semantics node in render… (#69919)
* Fix crash when widgetspan does not produce a semantics node in render paragraph

* fix comments

* fixed corner case, added test, refactored semantics widget

* addressing comment
2020-11-09 11:31:56 -08:00
Dan Field
16dce76577
Fix excessive rebuilds of DSS (#69724) 2020-11-06 12:09:02 -08:00
LongCatIsLooong
24c6266230
Adaptive constructor / TextInputAction docs (#69346) 2020-11-05 10:49:03 -08:00
Arpan Patel
52b4f725f7
AdoptAWidget: Shortcut (#69568)
* Added Interactive Sample
2020-11-05 08:21:02 +08:00
LongCatIsLooong
b26970b143
Cancel drag or hold when scrolling is disabled. (#69732) 2020-11-04 16:14:04 -08:00
chunhtai
6688e63f68
Improve backbuttondispatcher (#68735)
* Improve backbuttondispatcher

* update

* update

* fix analyzer

* addressing comments

* make takeprioirty recursive by default

* fix comment

* addressing comment
2020-11-04 16:00:28 -08:00
Yehuda Ringler
972fb0c85c
router.dart: fix grammer mistake (#68751) 2020-11-04 15:50:10 -08:00
Shi-Hao Hong
ad9b30b38d
Center the AnimatedPositioned code sample (#69644) 2020-11-04 10:44:05 -08:00
Greg Spencer
872c9d7ba7
Add maybeLocaleOf to Localizations (#68911) 2020-11-02 18:43:02 -08:00
Shi-Hao Hong
55a1d0ae9a
Offstage Docs Sample (#69567)
* Add a code sample for the [Offstage] widget
2020-11-03 08:34:40 +08:00
Greg Spencer
88809aa247
Standardize dartdoc macro names (#69445) 2020-11-02 13:28:05 -08:00
YeungKC
60a8b333b0
fix mouse wheel scroll miscontrol of ScrollPosition. (#66039) 2020-11-02 13:13:03 -08:00
Justin McCandless
22f3cd8a67
Rename AutocompleteCore to RawAutocomplete to match similar naming elsewhere in Flutter (#69419)
We are standardizing around the term Raw for lower level widgets.
2020-11-02 09:11:10 -08:00
Abdullah Deshmukh
8328b56ef3
AdoptAWidget: Dismissible (#69535) 2020-11-02 05:48:03 -08:00
Jivansh Sharma
ee5c080d7b
Update Draggable API Docs (#69527) 2020-11-02 03:58:05 -08:00
Chintan Patel
734d2a22fe
AdoptAWidget: SliverWithKeepAliveWidget (#69470) (#69557) 2020-11-02 01:53:02 -08:00
Anas35
97eaf58baa
AnimatedPositioned (#69513) 2020-11-01 23:38:04 -08:00
Rinish Sam
2f18e0b23d
update docs for AbsorbPointer (#69521) 2020-11-01 07:28:04 -08:00
Suryanshu Singh
e9b183d47d
AdoptAWidget: FittedBox (#69503) 2020-11-01 06:48:04 -08:00
Amit Patil
72025f0ee5
AdoptAWidget: aspectRatio (#69509) 2020-11-01 06:43:02 -08:00
Greg Spencer
c0ef94780c
Fix spelling errors (#69451)
My yearly pass to fix spelling errors in the API dartdocs.
2020-10-31 03:12:27 -07:00
najeira
72267a6cd0
Add HeroMode widget (#48223) 2020-10-30 21:23:02 -07:00
Michael Goderbauer
f2a25c5bd2
Make Directionality.of non-null (#69060) 2020-10-30 15:43:03 -07:00
Greg Spencer
fa3d2e2116
Remove nullOk parameter from Focus.of, FocusTraversalOrder.of, and FocusTraversalGroup.of (#68917)
This removes the nullOk parameter from Focus.of, FocusTraversalOrder.of and FocusTraversalGroup.of, and creates maybeOf equivalents for each. The of methods now return non-nullable values, and the maybeOf equivalents return nullable values.
2020-10-29 14:02:09 -07:00
Greg Spencer
e5f7726c7b
Remove nullOk parameter from AnimatedList.of and SliverAnimatedList.of (#68925)
This removes the nullOk parameter from AnimatedList.of and SliverAnimatedList.of, and creates maybeOf equivalents for each. The of methods now return non-nullable values, and the maybeOf equivalents return nullable values.
2020-10-29 14:01:05 -07:00
Greg Spencer
85a252569b
Remove nullOk parameter from Router.of and make it return a non-nullable value (#68910)
This removes the nullOk parameter from Router.of, and createsRouter.maybeOf. Router.ofnow returns a non-nullable value, and the Router.maybeOf returns a nullable value.
2020-10-29 14:00:47 -07:00
Greg Spencer
4f586fa355
Remove nullOk parameter from Shortcuts.of, Actions.find, and Actions.handler (#68921)
This removes the nullOk parameter from Shortcuts.of, Actions.find and Actions.handler and created Shortcuts.maybeOf and Actions.maybeFind. Shortcuts.of and Actions.find now return non-nullable values, and the maybe versions return a nullable value. I didn't create a non-nullable version of Actions.handler, since it needs to be able to return null if an action is not enabled, but I did remove the nullOk parameter, effectively setting it to true permanently, since setting it to false doesn't make much sense if the function can still return null when the action is not enabled.
2020-10-29 13:59:36 -07:00