6590 Commits

Author SHA1 Message Date
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
ny927
c06755772d
Add sample code to RelativePositionedTransition (#63940) 2020-09-08 16:00:03 -07:00
sehee Jeong
23e1d8f3bf
fix text.dart documentation (#65185)
I modified TextAlign docs because the descriptions of TextAlign.center and Center Widget are so similar that they cause confusion.

Fixes https://github.com/flutter/flutter/issues/5805
2020-09-08 15:59:38 -07:00
AhHyun Choi
3b744ee1ed
Add sample code for ScaleTransition (#63886) 2020-09-08 15:55:07 -07:00
Jonah Williams
29898812d4
[framework] make hit slop based on device pointer kind for drag/pan/scale gestures (#64267)
Currently the framework uses fairly large "hit slop" values to disambiguate taps from drags/pans. This makes sense on touch devices where the interaction is not very precise, on mice however it can feel as if the UI is lagging. This is immediately noticeable on our infra dashboard, where it takes almost half of a grid square of drag before the actual drag kicks in.

One potential solution is to always use smaller constants depending on whether the interaction is mouse or touch based. The only reasonable choice is to use the pointer device kind and not target platform - same platform can have different input sources. This requires exposing the pointer device kind in a few new places in several of the gesture detectors, and using the enum to compute the correct hit slop from an expanded set of constants.

This almost works, however there are a few places (notably ListViews) which uses the touch hit slop as a default value in scroll physics. It does not seem like it will be easy to disambiguate a user provided scroll physics constant from the default and/or adjust it somehow - this might require significant changes to scroll physics which I have left out of this PR.

This PR does not adjust:

kTouchSlop used in scroll_physics.dart's minFlingDistance
kTouchSlop used in PrimaryPointerGestureRecognizer/LongPressGestureRecognizer
2020-09-08 15:53:36 -07:00
Aman Gupta
c33d8f4e0e
updated_title_property_apidocs (#63884) 2020-09-08 15:50:04 -07:00
Alex Fourman
46eacc5462
adds additional guidance on how to use of correctly. (#64791) 2020-09-08 12:50:04 -07:00
Ian Hickson
1a010de89f
Make Container always clip a decoration if it has a clip edge (#64840)
This allows us to rationalize the nullability of some of our APIs.
Prior to this we'd end up in a situation where Container assumed that
getClipPath would be non-null but Decoration was ok with return null.
2020-09-08 12:06:28 -07:00
chunhtai
9cb2d4d65c
Fixed the sliver appbar to have a fixed traversal order (#65049) 2020-09-08 12:05:02 -07:00
Per Classon
0bb1e573fc
Revert "Add DataTableTheme to allow for themable DataTables (#64316)" (#65382)
This reverts commit cb4b8677219482e3378b1b6bfeff1241a453ccb6.
2020-09-08 15:28:13 +02:00
Ian Hickson
e10bdbbd9d
Fix RangeMaintainingScrollPhysics (#65135) 2020-09-07 11:40:03 -07:00
Zachary Anderson
02d0163244
Revert "ScaffoldMessenger (#64101)" (#65257)
This reverts commit 48f1a0a8d5531a08de638f087678770dd26b01ba.
2020-09-04 13:46:53 -07:00
Kate Lovett
48f1a0a8d5
ScaffoldMessenger (#64101) 2020-09-03 15:55:04 -07:00
Kate Lovett
20936eeac4
Allow for arbitrary placement in SliverGrid (#64750) 2020-09-03 11:20:04 -07:00
Sahand Akbarzadeh
33c619c9ac
fix Container.clipBehaviour, clips the shadow in decoration (#64362) 2020-09-03 10:40:03 -07:00
xster
2032a448ed
Update CupertinoIcons to cupertino_icons 1.0.0 based on SF Symbols (#65083) 2020-09-02 23:36:19 -07:00
Juyeong Lee
0b4dad6553
Update hintColor value for Material (#65036) 2020-09-02 16:55:05 -07:00
Smadey
68c1b441be
Clamp TabController animation value when calc _DragAnimation.value (#64715) 2020-09-02 16:45:06 -07:00
xubaolin
280e6d6c01
Remov redundant import of dart:math (#65060) 2020-09-02 16:40:04 -07:00
Tom Rivoire
2f96d1f026
Fix contentPadding documentation accent (#65094) 2020-09-02 15:41:19 -07:00
Per Classon
cb4b867721
Add DataTableTheme to allow for themable DataTables (#64316) 2020-09-02 15:40:06 -07:00
Nan Kim
608f0606af
SizeTransition sample code (#63833) 2020-09-02 15:35:04 -07:00
xubaolin
c7353bc414
Slider and RangeSlider can be painted in a narrower constraint like other Material Wi… (#64627) 2020-09-02 11:20:03 -07:00
Pedro Massango
7fdd9218b0
Proposal: deprecate autovalidate parameter of the Form, FormField and TextFormField widget (#61648) 2020-09-02 11:15:05 -07:00
Jonah Williams
09a9671ed3
[semantics] avoid sync* and excessive list copies (#64879)
Previous benchmarks have established the performance of sync*. Additionally, why allocate a list when you don't need to? Since these APIs are private, they can be re-arranged a bit to avoid creating as many lists. Will probably not have a large effect on benchmarks
2020-08-31 12:15:26 -07:00
Dan Field
3aa0243ab7
Remove assert about release mode (#64813)
b/150295238 has been resolved for a while now.
2020-08-31 10:03:12 -07:00
LongCatIsLooong
fe55dc2b13
Reland "Prevent viewport.showOnScreen from scrolling the viewport if the specified Rect is already visible. (#56413)" reverted in #64091 (#64513) 2020-08-28 22:13:04 -07:00
callumsteele4
e37b427a2a
Fix Android autofill username hint docs (#64776) 2020-08-28 16:18:06 -07:00
gaowanqiu
619eccd2e3
Fix negative usableCrossAxisExtent in release mode (#64441) 2020-08-28 16:13:05 -07:00
xubaolin
c26c2363a0
Slider paint incorrectly when the track shape is rectangular (#64534) 2020-08-28 16:08:10 -07:00
Broccolism
f1a2357463
feat: Text constructor, overflow, and softWrap docs (#64175) 2020-08-28 16:08:06 -07:00