7271 Commits

Author SHA1 Message Date
Tong Mu
c82c399eb7
[DataTable] Hide arrow padding when not sorting (#51667)
* Change onSort and add tests

* Add doc

* Regression test

* Remove if (true)

* Make test clearer

* Clearer comment
2020-03-12 18:20:15 -07:00
Tong Mu
b2d53f60e7
Tap gesture no longer add pointer after resetting (#52450)
* TapGestureRecognizer no longer adds the pointer after it resets.

* Adds an assertion to make sure TapGestureRecognizer.startTrackingPointer is never called when _down is null
2020-03-12 18:19:19 -07:00
Dan Field
73b2895ff1
Add errorBuilder to Image widget (#52481) 2020-03-12 16:21:01 -07:00
Wu Zhong
db6e2061aa
Fixes typo in comments (#52408) 2020-03-12 09:31:01 -07:00
Greg Spencer
7c9f95ac0a
Minor doc changes (#52433)
Just some very minor doc changes: an adjustment of my comments in #51495, and a typo fix.
2020-03-11 16:57:06 -07:00
Gary Qian
fed6ce17f8
Directionality formatter to move whitespace bidi handling into framework (#51964) 2020-03-11 16:25:12 -07:00
Gary Qian
d56266375b
Reland "Improve text formatter repeat filter logic (#52055)" (#52366) 2020-03-11 13:36:43 -07:00
Justin McCandless
4841a7ed6f
Text Selection Overflow (Android) (#49391)
Adds an overflow menu to the text selection menu on Android when the items overflow.
2020-03-11 13:36:10 -07:00
Greg Spencer
210f4d8313
Convert Diagnosticable to a mixin (#51495)
This converts Diagnosticable to be a mixin instead of an abstract class, so that it can be used to add diagnostics to classes which already have a base class.

It leaves in place the DiagnosticableMixin mixin, since there are some plugins that are still using it, and removing it would mean that those plugins wouldn't work with master branch Flutter anymore. DiagnosticableMixin will be removed once this mixin version of Diagnosticable makes its way to the stable branch.
2020-03-11 10:03:05 -07:00
Greg Spencer
d19c44344b
Add sample for InheritedNotifier, convert two others to DartPa… (#52349)
This adds a sample for InheritedNotifier, and converts a couple of other samples to be DartPad samples. I also added a new sample template stateful_widget_material_ticker, which adds a TickerProviderStateMixin to the state object so that animation controllers can be created there easily.
2020-03-10 15:23:45 -07:00
Gary Qian
ac6ea52b37
Revert "Add missing features to DefaultTextStyleTransition and AnimatedDefaultTextStyle (#51517)" (#52352) 2020-03-10 14:11:03 -07:00
Michael Goderbauer
ade6a1b3c5
Fix a11y scrolling for reversed lists (#52332) 2020-03-10 13:04:22 -07:00
Francisco Magdaleno
e9905b6ad8
[Keyboard] Collects windows key data (#52265) 2020-03-09 17:21:02 -07:00
renyou
847280f72f
Revert "Improve text formatter repeat filter logic (#52055)" (#52274)
This reverts commit 91b0bcf1a8a192e8135a9289310d81deba5824ec.
2020-03-09 16:26:48 -07:00
Gary Qian
91b0bcf1a8
Improve text formatter repeat filter logic (#52055) 2020-03-09 13:05:07 -07:00
Per Classon
1546f41ec1
Add width constraints for FlexibleSpaceBar.title in its expanded state, so that overflow of long titles can be handled (#51335) 2020-03-09 12:06:01 -07:00
Chad Nehemiah
31df1d459e
made builder required (#51993) 2020-03-09 12:01:01 -07:00
Darren Austin
1c3ebad904
Fix for negative padding from a curve in AnimatedPadding. (#52072)
* Fix for negative padding from a curve in AnimatedPadding.

* Added a EdgeInsets.clamp function that would return an EdgeInsets instance instead of a _MixedEdgeInsets used by the base class. This was causing some tests to fail that didn't have a text direction.
2020-03-06 14:14:03 -08:00
Masayuki Ono
2294d75bfa
Fix englishLike2018 bodyText (#49756) 2020-03-06 07:28:38 -08:00
Per Classon
88852731a5
Validate text selection before updating it inside of EditableText (#51410) 2020-03-06 01:26:01 -08:00
Hans Muller
a68f96ae3f
Fixed a typo in a FAB build debugPrint message (#52034) 2020-03-05 16:08:44 -08:00
Alexandre Ardhuin
c2ae654ddf
enable avoid_single_cascade_in_expression_statements (#51944) 2020-03-05 08:03:26 +01:00
Flutter GitHub Bot
cccbf1f200
Custom onPressed behavior for CloseButton widget (#51925) 2020-03-04 20:36:02 -08:00
Flutter GitHub Bot
b0381df11f
Unlooping Golden File Tests (#51883) 2020-03-04 15:21:01 -08:00
Flutter GitHub Bot
d0c4357338
Keep render tree and element tree in sync when re-used elements move in a MultiChildRenderObjectElement's child list (#51674) 2020-03-04 11:46:03 -08:00
Ben Konyi
3edd3eb4a2
Updated package:test, package:test_core, package:coverage, package:package_config (#51946)
This is required to roll forward package:vm_service to 3.0.0 and is
blocking a DevTools release.
2020-03-04 11:40:52 -08:00
Dan Field
9c0337f386
Remove listeners for live images when we clear them (#51898)
* Remove listeners for live images when we clear them

* review, more test

* explanation
2020-03-03 18:30:17 -08:00
Shi-Hao Hong
ad44b05ca4
Revert "AlertDialog widget scrollable by default (#49848)" (#51886)
This reverts commit 28f2c96a8a63ca75700b307692b3bc691d6d010c.
2020-03-03 14:03:05 -08:00
Shi-Hao Hong
28f2c96a8a
AlertDialog widget scrollable by default (#49848) 2020-03-03 13:39:01 -08:00
Shi-Hao Hong
d2c734a36f
Simple repeating word fixes (#51871) 2020-03-03 11:13:07 -08:00
Greg Spencer
1ba4f1f509
Add Linux and Windows target platforms (#51519)
This PR adds the linux and windows target platform enum values, along with automatically setting the defaultTargetPlatform to the appropriate value on those platforms.

Fixes #31366
2020-03-03 04:38:04 -08:00
Sebastian Roth
8df3e057b2
Add missing back links to the layout catalog (#51782) 2020-03-02 16:29:02 -08:00
Gary Qian
b4cf20380e
Add missing features to DefaultTextStyleTransition and AnimatedDefaultTextStyle (#51517) 2020-03-02 16:24:02 -08:00
枯藤老树
3551a51df4
Update flexible_space_bar.dart (#51314) 2020-03-02 16:19:06 -08:00
Remi Rousselet
c742c19891
Add debugDoingBuild flag (#51428) 2020-03-02 09:55:37 -08:00
LongCatIsLooong
fe0a669cc9
fix sign (#51679) 2020-03-02 09:54:02 -08:00
Shi-Hao Hong
96003f91d6
Fix doc typo in WidgetsApp.supportedLocales (#51646)
* Fix doc typo
2020-03-02 09:49:21 -08:00
Pierre-Louis
ec64f93fdd
Material Bottom Sheet Reveal/Dismiss animation uses a curved animation (#51122) 2020-03-02 09:49:03 -08:00
stuartmorgan
6a337a76dd
Revert "Fix handling backspace on macos with text selection (#49760)" (#51577)
This reverts commit 9375377fa99e8faae8a573e9fe92b8712d33e82d.

Fixes #51511
2020-02-28 14:28:34 -08:00
Dan Field
646d2b0139
properties (#51650) 2020-02-28 12:01:03 -08:00
Jonah Williams
213027dd82
[Perf/codesize] Reland: Reduce constraint member reads during layout
This reverts commit 2132a0c7a3d2a107190238ca0c5570baa0467bb7.
2020-02-28 10:02:57 -08:00
Justin McCandless
7011d30876
AppBar Height Fix (#48761) 2020-02-28 09:51:02 -08:00
Jason Simmons
ae027c194f
Use strut box heights to calculate selection rectangles in order to ensure that they remain within visible bounds (#50354) 2020-02-28 09:36:03 -08:00
Darren Austin
fef2d6ccd6
Pass RouteSettings into all callers of showGeneralDialog. (#51525) 2020-02-27 15:11:01 -08:00
chunhtai
52a5311924
remove isinitialroute from RouteSettings (#51435) 2020-02-27 10:41:08 -08:00
Greg Spencer
d4226566d4
Change Focus.unfocus to take a disposition for where the focus… (#50831)
When Focus.unfocus is called, the caller usually just thinks about wanting to remove focus from the node, but really, unfocus is a request to automatically pass the focus to another (hopefully useful) node.

This PR removes the focusPrevious flag from unfocus, and replaces it with a disposition enum that indicates where the focus should go from here.

The other value of the UnfocusDisposition enum is UnfocusDisposition.scope.

UnfocusDisposition.previouslyFocusedChild is closest to what focusPrevious used to do: focus the nearest enclosing scope and use its focusedChild field to walk down the tree, finding the leaf focusedChild. This PR modifies it slightly so that it walks up to the nearest focusable enclosing scope before trying to focus the children. This change addresses #48903

A new mode: UnfocusDisposition.scope will focus the nearest focusable enclosing scope of this node without trying to use the FocusScopeNode.focusedChild value to descend to the leaf focused child. This is useful as a default for both text field finalization and for what happens when canRequestFocus is set to false. It allows the scope to stay focused so that nextFocus/previousFocus still work as expected, but removes the focus from primary focus.

In addition to those changes, unfocus called on a FocuScope that wasn't the primary focus used to unfocus the primary focus instead. I removed that behavior, since it was buggy: if the primary focus was inside of a child scope, and you called unfocus on the parent scope, then the child scope could have focused another of its children instead, leaving the scope that you called unfocus on with hasFocus returning true still. If you want to remove the focus from the primary focus instead of the scope, that's easy enough to do: just call primaryFocus.unfocus().

Fixes #48903
2020-02-26 18:04:32 -08:00
Dan Field
444b13b895
Colored box and container optimization (#50979) 2020-02-26 16:04:35 -08:00
Dan Field
c75db98337
Live image cache (#51485)
* Reland "Live image cache" (#51441)

This reverts commit 419a2853a8e4ac846524afeb49b866d4cdaa7d9d.

* Make evict safer
2020-02-26 16:01:56 -08:00
Ferhat
1a79592b4a
Reduce closure allocation in RenderObject.cleanRelayoutBoundary (#51439) 2020-02-26 15:53:19 -08:00
Ferhat
2132a0c7a3
Revert "[Perf/codesize] Reduce constraint member reads during layout (#51418)" (#51489)
This reverts commit 69080e07e6bb178332bf546cf83054a85b91b2fe.
2020-02-26 15:51:30 -08:00