7202 Commits

Author SHA1 Message Date
Dan Field
2f09d601b5
Revert "Live image cache (#50318)" (#51131)
This reverts commit 1602be6ab6529732b59cdc5ac36ec8439690329b.
2020-02-20 13:20:28 -08:00
Albertus Angga Raharja
aad941e3fa
Avoid using FlutterError.fromParts when possible (#43696)
This PR is a follow up of https://github.com/flutter/flutter/pull/42640
Some changes of that PR includes redundant changes using FlutterError.fromParts constructor even though it's not necessary.

Some minor changes are:

- Remove one unnecessary todo
- Fix indent consistencies
2020-02-20 07:51:53 -08:00
Alexandre Ardhuin
7d7ac7c32b
start multiline strings with newline (#50825) 2020-02-20 10:16:28 +01:00
Gary Qian
af17860513
Detect sync vs async obtainKey in ResizeImage (#51081) 2020-02-19 19:06:03 -08:00
Per Classon
74e564da2d
Add parameter to Scaffold so its possible to disable open Drawer drag gesture (#50925) 2020-02-19 18:51:04 -08:00
Greg Spencer
1793108ba1
Add additional focus samples. (#50846) 2020-02-19 18:41:03 -08:00
Darren Austin
7a83c6fcd4
Expose insetPadding and clipBehavior in Dialog and AlertDialog. (#50775) 2020-02-19 18:26:04 -08:00
Tjong Anthony
e7c90057c7
[Form] Add is valid to FormState (#48948) 2020-02-19 13:31:05 -08:00
najeira
4c5aef63a9
Fix comment typo FormField.initialState to FormField.initialValue (#51011) 2020-02-19 13:26:13 -08:00
Martin Kustermann
17de0c5319
Weaken stack-trace based tests to allow auto-roll of new engine which will change the format (#51047)
Follow-up PR will restore those tests with new expectations:
https://github.com/flutter/flutter/pull/50760
2020-02-19 10:05:40 -08:00
Shi-Hao Hong
89ff794ac8
InputDecorator prefixIconConstraints and suffixIconConstraints (#50058) 2020-02-18 11:31:04 -08:00
Dan Field
8aa67610f7
Avoid including a potentially animated invisible image (#50842)
* Avoid including a potentially animated invisible image
2020-02-18 11:29:55 -08:00
Jonah Williams
9b4cb4da72
[versions] reland update test to 1.12.0 (#50879) 2020-02-18 10:38:54 -08:00
Jonah Williams
e481fcae52
Revert "[version] update to package:test 1.12.0 (#50818)" (#50853)
This reverts commit d3387bc916da209506db3f07976208bb2f81f911.
2020-02-14 22:34:30 -08:00
Jonah Williams
d3387bc916
[version] update to package:test 1.12.0 (#50818) 2020-02-14 21:51:47 -08:00
Dan Field
1602be6ab6
Live image cache (#50318)
Track images available on screen
2020-02-14 15:03:05 -08:00
creativecreatorormaybenot
08c835913e
Expose showButtonMenu of PopupMenuButtonState (#50670) 2020-02-14 14:51:19 -08:00
Greg Spencer
18984101d9
Fix the spelling of manditory (#50746) 2020-02-14 08:43:02 -08:00
Taufiq Rahman
d1185337cc
Feature: Allow minLines in SelectableText (#50750)
* Feature: allow minLines in SelectableText
2020-02-14 06:38:13 -08:00
Yegor
b34046903b
Fix stack trace parsing on non-debug builds; add e2e tests (#50652)
* Fix stack trace parsing on non-debug builds; add e2e tests
2020-02-13 18:34:08 -08:00
Dan Field
766bd70598
Image tracing (#50648) 2020-02-13 14:04:02 -08:00
Gary Qian
8769f94cf6
Add textHeightBehavior and textWidthBasis to AnimatedDefaultTextStyle (#50748) 2020-02-13 16:52:31 -05:00
Shi-Hao Hong
1f3d423f92
Step 1: SnackBarBehavior.floating offset fix - Soft breaking change (#50597)
* Adds an opt-in flag to fix floating snackbar's offset when no floating action button is present. This flag will be removed once the migration for the fix is complete.

Co-authored-by: filaps <filip1997.28@mail.ru>
2020-02-13 10:04:31 -08:00
Shi-Hao Hong
a833effbc7
Reland Alert dialog overflow spacing (#50675)
* Add ButtonBar.overflowButtonSpacing

* Add AlertDialog overflow button spacing functionality
2020-02-13 10:00:15 -08:00
Greg Spencer
232063e5c3
Changed ThemeData DiagnosticProperties to DiagnosticLevel.debug (#50589) 2020-02-13 09:53:02 -08:00
Greg Spencer
d57d493507
Reland: Add OrderedFocusTraversalPolicy and FocusTraversalGrou… (#50672)
This re-lands #49235 with the addition of includeSemantics flag on the Focus widget so that the FocusTraversalGroup can create a Focus widget without affecting the semantics tree.

The FocusTraversalGroup uses the Focus widget to create a grouping of descendants for traversal, but doesn't actually participate in focus (canRequestFocus is always false), so we don't want it to add a Semantics widget in that case, since that can cause semantics changes. The canRequestFocus attribute can also be used when a widget is disabled, so we do sometimes want to include Semantics even if that is false, but not in the case where it is always false, as for FocusTraversalGroup.

- Added a test to make sure that FocusTraversalGroup doesn't add any semantics information.
2020-02-12 16:22:01 -08:00
Greg Spencer
b2a7ff36a9
Fix lack of ancestor notification when a focus node is unfocus… (#50319)
This fixes a problem when unfocusing focus nodes where the ancestor focus nodes and scopes don't receive notification that a child was unfocused.

Fixes #43497
2020-02-12 16:20:08 -08:00
Jenn Magder
24017e761e
Revert "AlertDialog.actionsOverflowButtonSpacing and ButtonBar.overflowButtonSpacing (#50609)" (#50674) 2020-02-12 15:20:13 -08:00
Michel Feinstein
508c35940b
Added linking to viewInsets and viewPadding in MediaQuery padding docs (#50659) 2020-02-12 14:58:05 -08:00
Shi-Hao Hong
23d61a81dc
AlertDialog.actionsOverflowButtonSpacing and ButtonBar.overflowButtonSpacing (#50609)
* Add ButtonBar.overflowButtonSpacing

* Add AlertDialog overflow button spacing functionality
2020-02-12 14:53:59 -08:00
chunhtai
7168421e9f
fixes route name annoucement in navigator (#50495) 2020-02-12 14:53:05 -08:00
Jacob Richman
7820641a05
Fix Diagnostics subclasses that had the wrong default value for the named parameter. (#50645) 2020-02-12 14:52:50 -08:00
Greg Spencer
c132c0faa9
Revert "Add OrderedFocusTraversalPolicy and FocusTraversalGrou… (#50660)
This reverts commit 8ef5e2f046ed18ca32827e1a715ca5e405c646ac because it breaks some semantics tests.
2020-02-12 13:37:36 -08:00
Josh Burton
2b16202ea2
Adds shadowColor property to the Card widget (#47273) 2020-02-12 13:23:02 -08:00
Arthur Denner
d3e1e29375
SimpleDialogOption: support custom padding (#50035) 2020-02-12 08:58:03 -08:00
Anthony Mansour
4c1045c0f8
Fixed preferredSize getter in TabBar (#41299) 2020-02-12 08:53:02 -08:00
Gary Qian
cad08149ca
Remove invalid assert for TextHeightBehavior (#50603) 2020-02-11 19:08:05 -05:00
Jonah Williams
953df281ea
Revert "Revert "Reduced code duplication in ink_splash.dart, ink_ripple.dart (#49480)" (#50502)" (#50512)
This reverts commit 9bc0e6a991cbbe2bfe8328eacb62f6320b8d6812.
2020-02-11 16:05:53 -08:00
Jason Simmons
324e20de09
Update TextStyle.hashCode to handle list fields (#50520) 2020-02-11 14:38:03 -08:00
LongCatIsLooong
48d5fcabbd
evict _SliverFractionalPadding cache on constraint change (#50523) 2020-02-11 12:52:53 -08:00
Alexandre Ardhuin
f15c887c63
change quote to avoid escapes (#50368) 2020-02-11 20:58:27 +01:00
Lamonte
fd1062debd
Exposed optional scrollController property in ReorderableListView (#49148) 2020-02-11 10:58:02 -08:00
Greg Spencer
8ef5e2f046
Add OrderedFocusTraversalPolicy and FocusTraversalGroup to all… (#49235)
This change adds a way to provide explicit focus order for a part of the widget tree.

It adds FocusTraversalPolicyGroup, which in many ways is similar to DefaultFocusTraversal, except that it groups a widget subtree together so that those nodes are traversed as a group. DefaultFocusTraversal doesn't work as one would expect: If there is more than one DefaultFocusTraversal inside of a focus scope, the policy can change depending on which node was asked to move "next", which can cause unexpected behavior. The new grouping mechanism doesn't have that problem. I deprecate DefaultFocusTraversal in this PR.

It also adds OrderedFocusTraversalPolicy, which is a policy that can be supplied to FocusTraversalPolicyGroup to set the policy for a sub-tree. It looks for FocusTraversalOrder inherited widgets, which use a FocusOrder to do the sorting. FocusOrder has two subclasses: NumericalFocusOrder (which sorts based on a double), and LexicalFocusOrder, which sorts based on a String.

As part of doing this, I refactored the way FocusTraversalPolicy is implemented so that it has more default implementation methods, and exposes a new protected member: sortDescendants, which makes it easier for developers to make their own policy subclasses: they only need to implement sortDescendants to get a new ordering behavior, but can also still override any of the default implementation behaviors if they need different behavior.

I was able to do this without breaking the API (AFAICT).
2020-02-11 09:18:39 -08:00
Gary Qian
f769bcc5c4
Reland "Track lastKnownRemoteTextEditingValue separately from received data" (#50307) 2020-02-10 20:55:48 -05:00
Mouad Debbar
bf551a31fe
EditableText's autofocus:true should not crash (#50372) 2020-02-10 15:58:02 -08:00
Shi-Hao Hong
67826bdce5
Revert "Fix SnackBar clipping when it is floating due to FloatingActionButton positioning (#47616)" (#50516)
This reverts commit 801a6a7e5e2c16525d3c2856a43ed34b5ff536a3.
2020-02-10 14:59:32 -08:00
Greg Spencer
18f8002ec8
Make FocusManager a ChangeNotifier that notifies when the prim… (#50392)
This makes FocusManager a ChangeNotifier that notifies when the primaryFocus changes so that an app can track the current focus.

Fixes #50501
2020-02-10 14:33:31 -08:00
Dan Field
9cb2953e10
Fix image tests that make faulty assumptions about lifecycle of image provider (#50297) 2020-02-10 14:23:01 -08:00
Dan Field
ffc85591c8
more gradle upgrades (#50388) 2020-02-10 14:16:49 -08:00
Michael Goderbauer
6d87337f51
Remove some obsolete // ignore: (#50481) 2020-02-10 14:08:09 -08:00