6620 Commits

Author SHA1 Message Date
TheBiirb
e0ac5da164
Added clipBehavior to Overlay, Flow, AnimatedSize and AndroidView (#65910) 2020-09-17 15:22:10 -07:00
Jonah Williams
b1d17c914d
Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor (#66043)
We've gotten feedback that the VelocityTracker change was disruptive, though it did not break any of the flutter framework or customer tests. In order to make the change non-breaking, PointerDeviceKind parameter can be made optional.

Nevertheless, this parameter should be provided so that the existing touch handlers can use more accurate gestures on mouse/stylus inputs, so we can encourage this by deprecating the default constructor and pointing users towards the VelocityTracker.withKind constructor that takes a non-optional parameter
2020-09-17 15:18:31 -07:00
Hans Muller
b56a8c569e
Replaced reference to obsolete FlatButton button class in SnackBar (#65988) 2020-09-17 15:16:20 -07:00
Jonah Williams
a3aeab0c83
Revert "TextSelectionTheme support (step 2 of 3) (#65044)" (#66051)
This reverts commit cb92ffc7fa2a3731b98bd4dc7ddfedcc1f50ea6e.
2020-09-17 11:43:28 -07:00
renyou
48ba488d33
Revert "TextField constrained layout bug (#65966)" (#66027)
This reverts commit 10a66b19d5a7b7169602af74795c80e139907266.
2020-09-17 09:37:33 -07:00
Jonah Williams
d15da04f4f
Revert "always adds alert label for alert dialog in Android (#65973)" (#66031)
This reverts commit fd0554ba89e6e2904355bc96622554b6a4ca6bf9.
2020-09-17 07:51:28 -07:00
chunhtai
fd0554ba89
always adds alert label for alert dialog in Android (#65973) 2020-09-16 17:42:05 -07:00
Darren Austin
cb92ffc7fa
TextSelectionTheme support (step 2 of 3) (#65044) 2020-09-16 17:22:04 -07:00
nero
021c2010df
[ReorderableListView] remove extra margin added after picking up the item (#65080) 2020-09-16 16:37:04 -07:00
TheBiirb
71fa330931
Added sample code to AnimatedAlign (#64698) 2020-09-16 16:27:04 -07:00
Alexandre Ardhuin
6978832293
migrate some cupertino files to nullsafety (#65880) 2020-09-16 14:27:03 -07:00
Justin McCandless
10a66b19d5
TextField constrained layout bug (#65966)
Fix a bug in the layout of some textfields with constrained height and visual density.
2020-09-16 14:19:34 -07:00
Michael R Fairhurst
7f3c9b6bda
Remove unused 'dart:async' imports. (#65568) 2020-09-16 14:14:06 -07:00
YeungKC
0220c3585c
Fix FormFieldState value not in sync with the onChanged value from TextFormField. (#65695) 2020-09-16 08:13:05 -07:00
Jonah Williams
13fcedc7dc
[flutter] elide semantic information from certain widget spans (#65857) 2020-09-15 22:22:04 -07:00
Tong Mu
a48e14308e
Expose GestureBinding.handlePointerEvent, replacing dispatchEvent as the preferred way to dispatch events (#64846) 2020-09-15 22:17:06 -07:00
Greg Spencer
199a7c1964
Fix the character field of the RawKeyEvent to hold correct data on non-Android platforms. (#65667)
This fixes a problem where the character field of the RawKeyEvent was not being set at all for non-Android platforms.

I also updated the key maps, and corrected a problem with the Windows key map where the backquote character wasn't correctly mapped.
2020-09-15 13:02:16 -07:00
LongCatIsLooong
8eadbb3137
Revert "Add CompositedTransformFollower.{followerAnchor, leaderAnchor} for custom anchoring (#64930)" (#65871)
This reverts commit 2fbb529d2b04ab8a3472e14c4efdee9a068ea0f4.
2020-09-15 11:28:52 -07:00
Yuqian Li
7948a7863b
Continue the clipBehavior breaking change (#61366)
This follows https://github.com/flutter/flutter/pull/59364 and cl/319911104

FittedBox is still default to hardEdge clip as new FittedBox is added to Google very quickly. Let's first roll other part of changes into Google first.
2020-09-15 11:27:07 -07:00
Hans Muller
eb5ab2cb5c
Buttons animate elevation changes before changing background color (#65662) 2020-09-15 10:57:04 -07:00
Hans Muller
abc9af52c8
Updated API doc references to obsolete Material button classes (#65665) 2020-09-15 10:56:42 -07:00
Anthony
50f929f98e
[Material] Fix a jumping animation in the beginning of the extended Navigation Rail transition (#65659) 2020-09-15 10:52:04 -07:00
Alexandre Ardhuin
e55b7ca0a3
fix nullability of ScrollMetrics (#65861) 2020-09-15 10:10:33 -07:00
Alexandre Ardhuin
b007a81ad4
Reland "Nnbd widgets" (#65528)
* Reland "Nnbd widgets (#64672)"

This reverts commit 127e67902e8bbb0dcbfb3351b8fd00f7cbdf0178.

* remove non-nullable enforcement on AsyncSnapshot

* make data param non-nullable for AsyncSnapshot.withData

* make some Text params non-nullable
2020-09-15 16:42:00 +02:00
Pedro Massango
96ca0e272b
Add onSelectionChanged into SelectableText widget (#65320) 2020-09-15 01:02:04 -07:00
GodHyum
dfd0c6270f
Remove back button when using end drawer (#63272) 2020-09-15 00:57:03 -07:00
Ayush Bherwani
4e89ccfdee
[LayoutBuilder] Implements baseline logic to pass baseline to child (#65000) 2020-09-14 18:02:05 -07:00
Filip Hracek
5b76b350b6
Improve docs of ImageFiltered and BackdropFilter (#65503) 2020-09-14 17:57:08 -07:00
LongCatIsLooong
2fbb529d2b
Add CompositedTransformFollower.{followerAnchor, leaderAnchor} for custom anchoring (#64930) 2020-09-14 17:52:06 -07:00
sehee Jeong
a39a893463
Add sample code to FadeTransition (#64240) 2020-09-12 14:42:02 -07:00
chunhtai
a5a07a784a
fix overlay entry remove to remove itself from the overlay first if i… (#65126) 2020-09-11 18:07:04 -07:00
Ian Hickson
b3d1ebf117
Move the registration of the restoration channel to binding initialization. (#65579) 2020-09-11 16:30:05 -07:00
TerrenceAddison
e122238c7a
Bug fix where MouseScrollWheel zoom in flutter-web does not execute onInteraction functions (#65313) 2020-09-11 15:30:03 -07:00
Justin McCandless
f78b27e41a
Fix InteractiveViewer minScale bug (#65432) 2020-09-11 14:45:03 -07:00
Juyeong Lee
551a2a6b69
Improve Stepper controlsBuilder docs (#63910) 2020-09-11 14:40:03 -07:00
Greg Spencer
3055ae4e93
Eliminate the need for the mockito package in animated_icons_private_test (#65199) 2020-09-10 15:50:03 -07:00
Hans Muller
13860a7d23
Revert "Re-land ScaffoldMessenger (#65416)" (#65482)
This reverts commit adc5f26b504f3cb80557455d8f0badad874ebc8b.
2020-09-10 13:17:51 -07:00
Per Classon
ba1aeb409e
Reland "Add DataTableTheme to allow for themable DataTables (#64316)" (#65383) 2020-09-10 13:00:04 -07:00
Shardul Nalegave
330db46da1
Fixed Tooltip widget docs. According to issue #53072 (#65250) 2020-09-10 12:55:05 -07:00
Markus Aksli
f0f02aca86
reset and added back changes (#65460) 2020-09-09 15:50:05 -07:00
Anatoly Pulyaevskiy
bb59993ac6
Expose 3 new methods with text metrics in RenderParagraph (#65150) 2020-09-09 15:45:03 -07:00
Mouad Debbar
0d8de393aa
[web] Don't show handles when selection change is caused by keyboard (#65127) 2020-09-09 15:40:06 -07:00
Hansol Lee
389b5b6c3a
Fix TabBar jag when user interrupts ballistic scroll (#64380) 2020-09-09 15:35:05 -07:00
Michael Goderbauer
127e67902e
Revert "Nnbd widgets (#64672)" (#65488)
This reverts commit e682ec711a8c05fe78157595240b392de339fa32.
2020-09-09 15:18:54 -07:00
Alexandre Ardhuin
e682ec711a
Nnbd widgets (#64672)
* migrate widget to nullsafety

* remove double blank line after license

* address review comments in actions.dart

* nullable ObjectKey.value

* use local variable oldElement

* make State.build non-nullable

* make State.context non-nullable

* newline at eof

* make ProxyWidget.child non-nullable

* make _InactiveElements.debugContains non-nullable

* make Element.depth non-nullable

* make ProxyElement.build non-nullable

* make StatefulElement.state non-nullable

* remove 'Notice that'

* avoid cast of list in RenderObjectElement.updateChildren

* make IndexedSlot.value non-nullable

* avoid cast of list in MultiChildRenderObjectElement.mount

* make some WidgetsApp parameters non-nullable

* hitTest take non-nullable position

* make ScrollableState.position non-nullable

* use _pixels instead of pixels

* make ViewportOffset.pixels non-nullable

* make param and return type of IndexedWidgetBuilder non-nullable

* unused_import

* make context param non-nullable for Builder in animated_list.dart

* make ScrollMetrics.viewportDimension non-nullable

* make ScrollMetrics.{min,max}ScrollExtent non-nullable

* make _Location.file non-nullable

* _WidgetForTypeTests.createElement throw UnimplementedError

* update _NullWidget.build error message

* make _ShortcutsState.manager non-nullable

* Fix childCount issues for NNBD

* fix childCount computation on web

* increase max value on js side to compute childCount

* make aspect parameter of dependOnInheritedWidgetOfExactType nullable

* merge has{min,max}ScrollExtent into hasScrollExtents

* update focus_manager.dart

* address review comments in icon.dart

* address review comments in image.dart

* address review comments in routes.dart

* address review comments in scroll_activity.dart

* update doc comments

* make UserScrollNotification.direction non-nullable and required

* rename hasScrollExtents to hasContentDimensions

* unnecessary late

Co-authored-by: Ian Hickson <ian@hixie.ch>
2020-09-09 10:52:27 +02:00
Todd Volkert
54ade88365
Small documentation udpate (#65392) 2020-09-08 22:08:57 -07:00
Haeseok Lee
011331dce5
Fixes issue, ReorderableListView destroys children even if their key-type wasn't changed (#64855) 2020-09-08 21:25:05 -07:00
Pedro Massango
38834d36d3
Improve API docs (#65394) 2020-09-09 07:47:17 +08:00
AhHyun Choi
49f48ff224
Add sample code to RotationTransition (#64795) 2020-09-08 16:05:03 -07:00
Hans Muller
adc5f26b50
Re-land ScaffoldMessenger (#65416) 2020-09-08 16:02:06 -07:00