6502 Commits

Author SHA1 Message Date
Todd Volkert
4d8934af48
Re-apply "(insert|move|remove)ChildRenderObject Deprecation: Step 1 (#64189)" (#64254)
This reverts commit ce40de69b7b4f89c66d19c8dbd3bd86ae30f1bc6.

(this re-applies #64189 by reverting #64249)
2020-08-20 08:19:34 -07:00
Mehmet Fidanboylu
ce40de69b7
Revert "(insert|move|remove)ChildRenderObject Deprecation: Step 1 (#64189)" (#64249)
This reverts commit 21cfed34d478d6a1c0223557a7935b69b15613bb.
2020-08-20 07:31:50 -07:00
Paul Berry
32464aa38a
Ignore unnecessary casts that can go away soon. (#64200) 2020-08-19 22:36:05 -07:00
TheBirb
a1097d70ed
Added tests (#62635) 2020-08-19 22:31:05 -07:00
Tong Mu
fb0b982324
Change MouseTracker's interface for clarity. Simplify MouseRegion's implementation. (#64119)
* Redesigns the interface between MouseTracker and RendererBinding&RenderView.
* Simplifies the structure of RenderMouseRegion.
* Extracts the common utility code between mouse_tracker_test and mouse_tracker_cursor_test.
2020-08-19 18:51:56 -07:00
Todd Volkert
21cfed34d4
(insert|move|remove)ChildRenderObject Deprecation: Step 1 (#64189)
* (insert|move|remove)ChildRenderObject Deprecation: Step 1

This deprecates the following methods:

* RenderObjectElement.insertChildRenderObject
* RenderObjectElement.moveChildRenderObject
* RenderObjectElement.removeChildRenderObject

...and replaces them with the following methods:

* RenderObjectElement.insertRenderObjectChild
* RenderObjectElement.moveRenderObjectChild
* RenderObjectElement.removeRenderObjectChild

The reason for the deprecation is to provide the `oldSlot` argument to
the `moveRenderObjectChild` method (such an argument was missing from
the now-deprecated `moveChildRenderObject` method) and the `slot`
argument to the `removeRenderObjectChild` method (such an argument was
missing from the now-deprecated `removeChildRenderObject` method). While
no argument was added to `insertRenderObjectChild`, the name change (and
corresponding deprecation) was made to maintain naming parity with the
other two methods.

This initial step does not update or remove any of the `slotToChild`
patterns that exist in the framework. This work is being separated
into two commits in case something needs to be reverted to minimize
the scope of each commit.

See https://github.com/flutter/flutter/issues/63269 for more info
2020-08-19 17:39:07 -07:00
chunhtai
31e881f3a8
remove ununsed deprecated field (#64076) 2020-08-19 16:26:05 -07:00
Jimmy Robert
d69ae36398
Fix tooltip position. (#60479) 2020-08-19 16:11:06 -07:00
Greg Spencer
041a3eaa84
Standardize the nullability of arguments to raw key data constructors. (#63523)
This standardizes the handling of nullability for the LogicalKeyboardKey.keyLabel and RawKeyEventData.keyLabel accessors so that they are non-nullable, but can be empty.

Before this change, the keyLabel could be either null or an empty string to indicate that there wasn't a label, which makes it harder to test for, since both need to be checked for. Since an empty string is sufficient, there is no need for it to be nullable.

Also, in raw_keyboard.dart, the web and Windows implementations wouldn't accept null values for parameters in the Map coming from the message, but tests were supplying null for some of them. This makes web and Windows creation of events match the other platforms, and makes the migration of tests to non-nullability easier.
2020-08-19 15:03:17 -07:00
Justin McCandless
ec24a819ea
ClipboardStatusNotifier should handle errors in Clipboard.getData (#64012) 2020-08-19 14:36:08 -07:00
Darren Austin
2735a661f9
Changes to initialDate for CalendarDatePicker should update the state. (#64115) 2020-08-19 13:36:06 -07:00
Mouad Debbar
2b67846aab
Make SelectableText work better on web (#63786) 2020-08-19 13:31:06 -07:00
Rami
414f8b5950
Remove unused copyWith arguments in TimePickerThemeData (#64167) 2020-08-19 13:26:10 -07:00
Jonah Williams
38e0c25823
[flutter_tools] reland: enable --null-assertions for flutter framework tests (#64120)
Reland of acdb909 with fixes to semantics.dart

#61042
2020-08-19 13:25:42 -07:00
Masayuki Ono (mono)
606abc915f
Fix title color of license detail page (#63249) 2020-08-19 09:01:06 -07:00
Rami
021cf56fc9
[Material] Relanding fix to ensure time picker input mode lays out correctly in RTL (#64097) 2020-08-19 09:30:28 -04:00
Justin McCandless
ce63f50733
Document how to size IV's child correctly, after seeing confusion in Github issues (#64100) 2020-08-18 23:51:04 -07:00
Jenn Magder
1b47759528
Revert "[null-safety] enable null assertions for framework tests (#64071)" (#64118)
This reverts commit acdb909fcb7fa078d2c536db4c5182c4b1b37337.
2020-08-18 18:08:51 -07:00
Jonah Williams
acdb909fcb
[null-safety] enable null assertions for framework tests (#64071) 2020-08-18 17:21:04 -07:00
Michael Goderbauer
734a90eb3a
migrate semantics to nullsafety (#64055) 2020-08-18 17:11:06 -07:00
Ian Hickson
2122fe1fa1
Typo (#63692) 2020-08-18 16:51:06 -07:00
Greg Spencer
d1eff0b413
Hook up soft keyboard "next" and "previous" buttons so that they move the focus by default (#63592)
Focus will be moved automatically if onEditingComplete is not specified, but must
by moved manually if onEditingComplete is specified.
2020-08-18 16:46:58 -07:00
Mehmet Fidanboylu
7f122c7429
Revert "Ensure time picker input mode lays out correctly in RTL (#63599)" (#64094)
This reverts commit 1de673bcda547a36406b77efebdeb078b1a073d3.
2020-08-18 14:15:50 -07:00
Mehmet Fidanboylu
bd6252eb3a
Revert "Prevent viewport.showOnScreen from scrolling the viewport if the specified Rect is already visible. (#56413)" (#64091)
This reverts commit 64d76f2fb7ed5eb785c660084b18ed5a51fd926b.
2020-08-18 13:55:33 -07:00
Mehmet Fidanboylu
473744df2c
Revert "fix wrap intrinsic height calculation (#63420)" (#64046)
This reverts commit 72619b86421bfdbf4ef7b98cb893b168b89c8677.
2020-08-18 08:07:14 -07:00
Andre
9e0ad9b6b5
Fix FittedBox BoxFit.scaleDown sizing (#63668) 2020-08-17 22:36:02 -07:00
Ian Hickson
8f3805f5af
Build routes even less. (#62588) 2020-08-17 15:16:06 -07:00
LongCatIsLooong
579cab8a86
Prevent material switch from recreating its render object when it becomes disabled (#61398) 2020-08-17 11:36:02 -07:00
server-developer
8a4ada25cd
DecoratedBoxTransition sample code (#63775) 2020-08-17 10:41:04 -07:00
chenjianguang
f45cdd57e2
Add debug flag debugProfileLayoutsEnabled. (#63652) 2020-08-17 10:36:03 -07:00
LongCatIsLooong
64d76f2fb7
Prevent viewport.showOnScreen from scrolling the viewport if the specified Rect is already visible. (#56413) 2020-08-14 16:41:03 -07:00
Nolan Scobie
ede1b15b76
Add viewport documentation breadcrumbs (#63192) 2020-08-14 15:56:02 -07:00
Paul Berry
d80aa48001
Ignore/fix dead_code checks for weak-only null checks. (#63794)
Now that https://github.com/dart-lang/sdk/issues/41985 is fixed, the
analyzer detects dead code due to "unnecessary" null checks.  Since we
want to retain null checks in Flutter even when they appear
unnecessary (in order to preserve runtime behavior in weak mode), we
need to suppress these dead code hints.

Note that one assertion is removed by this PR (`heightFactor != null
|| (heightFactor == 1.0 && heightDelta == 0.0)`).  This is because
`heightFactor == 1.0 && heightDelta == 0.0` can only be true if
`heightFactor != null`, so this assertion is equivalent to simply
asserting that `heightFactor != null`, which is already asserted two
lines above.
2020-08-14 14:18:38 -07:00
Michael Goderbauer
f512e86c2a
Use reportError (over onError) everywhere (#63784) 2020-08-14 12:03:18 -07:00
Michael Goderbauer
37ddad61ca
Make textfields restorable (#63401) 2020-08-14 12:02:38 -07:00
Declan Woods
03dcd1bd5a
Fix SafeArea and SliverSafeArea debug flag properties (#63455) 2020-08-14 12:01:05 -07:00
Rami
a609bb374c
Mention time picker theme in showTimePicker documentation (#63776) 2020-08-14 10:06:02 -07:00
Alexandre Ardhuin
96f3645037
migrate painting to nullsafety (#63703)
* migrate painting to nullsafety

* address review comments
2020-08-14 17:40:00 +02:00
MH Johnson
bee9522f18
[Text Scaling][Material] Update BottomNavigationBar to show tooltips on long press. (#59127) 2020-08-13 22:53:27 -04:00
Wikiwix
88118bcbd1
Fix sort indicator for DataTables (#62795)
* Fix sort indicator for DataTables

As per material spec ascending order should be shown via an upward arrow
This commit changes the displayed arrows accordingly.

* Test sort indicator orientation in DataTable
2020-08-13 15:17:43 -07:00
Yuqian Li
3ff76f47fb
Add clipBehavior to ListView, GridView, PageView (#63147)
These widgets are missing from
https://github.com/flutter/flutter/pull/59364

With this change, developers can use clipBehavior for
https://github.com/flutter/flutter/issues/59424
2020-08-13 15:01:41 -07:00
Michael Goderbauer
39a46bedad
Remove decommission from RestorationBuckets (#63687) 2020-08-13 15:01:04 -07:00
renyou
32ee00849c
Revert "Fix RangeMaintainingScrollPhysics" (#63611) 2020-08-13 14:46:04 -07:00
Paul Berry
8f896c9027
Ignore another dead_code hint for a weak-only null check. (#63602) 2020-08-13 14:36:08 -07:00
Jonah Williams
9e162cb310
Revert "Add native stacktrace field for PlatformException (#63502)" (#63705)
This reverts commit c67eafa87d2de441a195a8aa46c92eac37ce4616.
2020-08-13 14:03:11 -07:00
LI DONGZE
c67eafa87d
Add native stacktrace field for PlatformException (#63502)
* Add native stacktrace field for PlatformException

* Mute the readValue check for stacktrace.

* polish

* Add unit test and further polish

* Added more comments

* remove unnecessary import

* fill in stacktrace to JSONMethodCodec and fix tests

* fix style

* Fix format

* Remove unnecessary TODO since not all explicitly declared errors have stacktrace in it from native side.

* Handle case for exception without stacktrace on jsonMethodCodec

* Add more unit tests

* format test

Co-authored-by: Ben Li <libe@google.com>
2020-08-13 11:43:50 -07:00
Haeseok Lee
0174af8bd7
Update LinearGradient docs (#63604) 2020-08-13 11:21:04 -07:00
Rami
1de673bcda
Ensure time picker input mode lays out correctly in RTL (#63599) 2020-08-13 14:16:15 -04:00
Justin McCandless
441d7f3fb8
InteractiveViewer scale interpretation improvement (#63543) 2020-08-12 15:31:09 -07:00
Alexandre Ardhuin
afc9509996
allow null in compute for weak mode (#63515) 2020-08-12 15:31:05 -07:00