1347 Commits

Author SHA1 Message Date
Alexandre Ardhuin
7ceed97302
replace simple empty Container with w & h with SizedBox (#54394)
* replace simple Container(w & h) with SizedBox

* address review comments

* address review comments
2020-04-10 22:32:40 +02:00
Gary Qian
bb02f40ca8
Remove strict repeat check from framework formatter (moved to engine) (#53974) 2020-04-10 13:26:12 -07:00
Greg Spencer
c7b10df765
Fix initial value for highlight mode on desktop platforms. (#54306)
This fixes the initial value of FocusManager.highlightMode so that it gets initialized correctly on desktop platforms.

My recent update of this code (#52990) broke things so that the highlight mode never changed from the initial default of touch, which meant that focus highlights didn't show unless you set FocusManager.highlightStrategy to something (even automatic, the default: setting it caused the mode to be updated).
2020-04-10 13:23:55 -07:00
liyuqian
b475eaf8ba
Set AA flag for painting images (#51656) 2020-04-08 19:02:04 -07:00
Greg Spencer
0f68b46f6a
Revise Action API (#42940)
This updates the Action API in accordance with the design doc for the changes: flutter.dev/go/actions-and-shortcuts-design-revision

Fixes #53276
2020-04-07 16:49:39 -07:00
LongCatIsLooong
4af5fe2c37
Reland "iOS UITextInput autocorrection prompt (#45354)" (#54119) 2020-04-07 12:11:14 -07:00
Alexandre Ardhuin
f5a9902577
enable avoid_equals_and_hash_code_on_mutable_classes (#52507) 2020-04-06 13:36:01 -07:00
Greg Spencer
a2e6c30b44
Update Highlight mode initial value calculation. (#52990) 2020-04-03 20:26:01 -07:00
chunhtai
a206bf7e2f
Reland "Implements the navigator page api (#50362)" (#53708)
This reverts commit aee9e94c21009bfc6c08f442eacde06f001c25f9.
2020-04-01 09:44:22 -07:00
Gary Qian
6280b39164
Un-gate value setting in formatter repeat check logic (#53613) 2020-03-31 13:16:02 -07:00
nujz
fcd90c0a51
ScrollPosition.jumpTo call notifyListeners twice (#53425) 2020-03-31 11:26:02 -07:00
chunhtai
aee9e94c21
Revert "Implements the navigator page api (#50362)" (#53610)
This reverts commit 9a6eb7def3e932bc54f554200ec1fe7cdf2e630e.
2020-03-30 16:12:40 -07:00
Ayush Bherwani
b665533060
[MediaQueryData] adds assertions to MediaQueryData Constructor (#53003) 2020-03-30 12:41:03 -07:00
chunhtai
9a6eb7def3
Implements the navigator page api (#50362) 2020-03-27 16:24:01 -07:00
chunhtai
13fa5734f8
Reland fixes sliver list child layout offset calculation (#53187) 2020-03-25 11:06:02 -07:00
chunhtai
2a8e7b7bf1
fix changinternalstate crash when remove local history entry in final… (#52561) 2020-03-23 13:36:01 -07:00
Ferhat
fed6887aa0
Remove implements Function (#53113) 2020-03-23 11:54:32 -07:00
chunhtai
9f4e5ad9c3
Fix ios black screen during splash screen if widget binding initializ… (#52913) 2020-03-23 10:56:01 -07:00
Yegor
5ea13b8493
fix KeySet.hashCode; enable multiple web tests (#52861)
fix KeySet.hashCode; enable multiple web tests
2020-03-20 08:49:19 -07:00
chunhtai
3998549d52
Revert "fixes sliver list child layout offset calculation (#42703)" (#52923)
This reverts commit 11efa00f9f51d0f42fea4f206651ea974f59e42b.
2020-03-20 06:07:25 -07:00
chunhtai
11efa00f9f
fixes sliver list child layout offset calculation (#42703) 2020-03-19 14:51:04 -07:00
Gary Qian
ee8131b430
Reland formatter changes (#52765) 2020-03-18 15:56:02 -07:00
Yegor
7b4c195f99
Fix web test flakiness; enable web golden tests (#52789)
* Fix web test flakiness; enable web golden tests

The fix is three-part:

- Only allow one test to load _and_ test at any point in time.
- Use a fresh Chrome instance for each test file.
- Increase Cirrus resources.

The first two changes only fix the "Unknown error loading" error, but not hanging tests. The resource increase also prevents hanging tests.

Other minor changes:

- Remove test batching (it's no longer necessary)
- Fix the Chrome class, which was using the wrong Completer.
2020-03-18 15:11:48 -07:00
Michael Goderbauer
1444e77205
Use stable IDs for TextSpan SemanticsNodes (#52769) 2020-03-18 09:56:02 -07:00
Dan Field
08768e87e4
Revert repeater (#52752)
Reverts repeat filter logic for text formatter
2020-03-17 12:24:13 -07:00
Kate Lovett
aa622fbb26
Switching to Gold Status Check (#51968) 2020-03-13 11:41:01 -07:00
gaaclarke
f8e9a4fff2
Added option to specify you want the keyboard to be dismissed when you scroll. (#52068) 2020-03-13 09:44:24 -07:00
Dan Field
73b2895ff1
Add errorBuilder to Image widget (#52481) 2020-03-12 16:21:01 -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
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
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
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
Alexandre Ardhuin
c2ae654ddf
enable avoid_single_cascade_in_expression_statements (#51944) 2020-03-05 08:03:26 +01: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
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
Gary Qian
b4cf20380e
Add missing features to DefaultTextStyleTransition and AnimatedDefaultTextStyle (#51517) 2020-03-02 16:24:02 -08:00
Remi Rousselet
c742c19891
Add debugDoingBuild flag (#51428) 2020-03-02 09:55:37 -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
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
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
Miguel Beltran
7ff3a50fe7
Set highContrast value from AccessibilityFeatures into MediaQueryData (#48811) 2020-02-26 13:36:02 -08:00
Dan Field
419a2853a8
Revert "Live image cache" (#51441)
* Revert "Live image cache (#51249)"

This reverts commit e2dcdb60e327f80d414d3d1e72e2863bf4c9252c.

* fix tests for other commit
2020-02-25 16:52:47 -08:00