5822 Commits

Author SHA1 Message Date
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
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
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
Greg Spencer
9e744c5710
Implement VisualDensity for text fields. (#51438)
This implements VisualDensity changes for text fields*. By default, the layout of the text field does not change.

If the ThemeData.visualDensity is set to a value other than zero, then the density of the UI will increase or decrease. See the VisualDensity docs for more information.

(*In reality, the changes are on the InputDecorator class, not on the text field.)

I also fixed a problem that I think I found with _Decoration where it doesn't compare isDense or isCollapsed as part of its operator==.
2020-02-26 13:38:28 -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
Dan Field
7cbe55cf1a
Avoid caching image load failures that are retriable (#51398) 2020-02-25 14:56:04 -08:00
Greg Spencer
c71978f600
Remove deprecated DefaultFocusTraversal widget (#51240)
Remove deprecated DefaultFocusTraversal widget
2020-02-25 14:15:35 -08:00
Ferhat
69080e07e6
[Perf/codesize] Reduce constraint member reads during layout (#51418) 2020-02-25 13:50:21 -08:00
LongCatIsLooong
eb00c56205
fix symobol refs in the dynamic color doc (#46003) 2020-02-24 16:21:17 -08:00
Dan Field
e2dcdb60e3
Live image cache (#51249)
* Revert "Revert "Live image cache (#50318)" (#51131)"

This reverts commit 2f09d601b5a1632468714adb051d7f1e5a816ce4.

* Fix eviction of a pending image
2020-02-24 13:47:53 -08:00
Dmitry Ratushnyy
a70e4aec93
Material DataTable: added support of setting table row border thickness (#49692) 2020-02-24 09:46:03 -08:00
Michel Feinstein
92a028cf6d
Removed the unecessary "new" keyword from the docs (#51075) 2020-02-24 09:22:18 -08:00
Aadarsh Patel
1d4667bb38
Fixed a typo (#51302) 2020-02-23 19:26:02 -08:00
Greg Spencer
c4345d2a0a
Add a sample for FocusTraversalGroup (#51161) 2020-02-22 16:54:06 -08:00
Tanat Boozayaangool
bf8e2c1449
Fix typo in description for PointerEvent.radiusMax (#51149) 2020-02-21 14:21:25 -08:00
Shouichi Kamiya
e8e99e49f9
Fix TextEditingController doc to call super.initState first (#51089) 2020-02-21 14:16:04 -08:00
Greg Spencer
c5dd3ec47a
Fix stuck keys when shift is released before the letter. (#51095)
This fixes a problem where if you press "Shift" and then "A", then release "Shift" and then "a", then the "A" key will be "stuck" on because the logical key for the key down message is different (capital "A") from the logical key for the key up message (lowercase "a").

This PR changes the pressed keys logic so that it uses the physical key to add/remove keys from the list of pressed keys, but keeps the associated logical key.

This does mean that after the "Shift" key goes up, the pressed keys contains a capital "A" and it doesn't switch to be a lowercase "a", but there isn't currently any mechanism we can use to do that remapping. This is far less surprising than the current behavior, but is still not quite correct.

I fixed the event simulation code to take a physicalKey so that it could be matched with the logical key, but the event simulation code isn't up to the task, since it can only simulate keys that appear in the key maps. The new platform key event design should fix that (added TODOs).
2020-02-21 14:13:38 -08:00
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
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