5089 Commits

Author SHA1 Message Date
Michael Goderbauer
e6dc6a8b5f
Animation API doc improvments (#35919) 2019-08-01 10:29:06 +02:00
Justin McCandless
fb2f3e580e
iOS 13 scrollbar (#35829)
You can drag the cupertinoscrollbar if you pass an active scrollcontroller to the scrollbar.
2019-07-31 15:52:51 -07:00
Shi-Hao Hong
28dd0fde3b
Clamp Scaffold's max body height when extendBody is true (#37254) 2019-07-31 13:42:55 -07:00
Jim Graham
76d13ab318
Reland: Optimize the transformRect and transformPoint methods in matrix_utils. (#36396) (#37275)
Primarily these methods no longer allocate any objects other than their
return values.

Additionally, the math in the methods is reduced compared to the general
case math based on known input conditions.

Modified to no longer generate infinite values in some finite cases.
2019-07-31 13:25:45 -07:00
liyuqian
e77237d6d3
Reland "Fix the first frame logic in tracing and driver (#35297)" (#37192)
This relands https://github.com/flutter/flutter/pull/35297

The followings have been done to fix the broken tests:
  1. Add `didSendFirstFrameRasterizedEvent` extension and its tests
  2. Wait for `didSendFirstFrameRasterizedEvent` instead of
     `didSendFirstFrameEvent` during start up tests
  3. Mark missed (probably newly added) start up tests as flaky
2019-07-31 11:01:52 -07:00
Darren Austin
f0957abcd0
Made the snackbar fallback theme include a full inverse colorScheme. (#37038) 2019-07-31 10:43:59 -07:00
Michael Goderbauer
6ab2445ef5
Fix Textfields in Semantics Debugger (#37158) 2019-07-31 17:33:38 +02:00
Justin McCandless
d82bca2a31
Fix selection menu not showing after clear (#37042)
This allows the text selection menu to be shown after deleting all text in a text field.
2019-07-31 08:01:15 -07:00
Michael Goderbauer
9a01ed2a55
Revert "reland Enable selection by default for password text field and expose api to turn on and off context menu options (#34676) (#37183)" (#37295)
This reverts commit 7eb09a842e406f15dccb5ac1fac2ec7f511708fb.
2019-07-31 15:34:22 +02:00
chunhtai
7eb09a842e
reland Enable selection by default for password text field and expose api to turn on and off context menu options (#34676) (#37183)
This reverts commit 48c7090f3c2faa20499d2ae8ccca563138d0c215.
2019-07-30 14:19:10 -07:00
LongCatIsLooong
9357e70dfd
use FlutterError in MultiChildRenderObjectWidget (#37187) 2019-07-29 22:11:51 -07:00
knaeckeKami
9f0831624a Add searchFieldLabel to SearchDelegate in order to show a custom hint (#36409)
* Add searchFieldLabel to SearchDelegate in order to show a custom hint label.

* Add support for specifying textInputAction and keyboardType in SearchDelegate
2019-07-29 15:35:40 -07:00
Justin McCandless
b2497822e8
Android visible password input type support (#36695)
Android devices can now use the VisibleText input keyboard type.
2019-07-29 15:15:57 -07:00
Justin McCandless
c8be195e95
Fix thumb size calculation (#36887)
Cupertino's thumb would jump up/down in size at the overscroll boundary, and this fixes it.
2019-07-29 10:33:53 -07:00
Tong Mu
24f483cf25
Redo: Modal dismissed by any button (#36956)
This PR makes ModalBarrier dismiss modal with any button press instead of primary button up, by making it use a private recognizer _AnyTapGestureRecognizer that is similar to TapGestureRecognizer but accepts gestures by any single button.
2019-07-28 21:44:21 -07:00
Shi-Hao Hong
c1a118bcc3
Add margins to tooltips (#36963)
* Add margin parameter to tooltips

* Improve tooltip tests to find the tooltip's `Container` instead of arbitrary number of parent calls
2019-07-27 15:20:44 -07:00
LongCatIsLooong
e4ebcdf6f4 use SizedBox instead of Container for building collapsed selection (#37048) 2019-07-27 11:48:24 -07:00
Dan Field
bf3a907ce7
Revert Optimize transformRect (#37049)
* Revert "Optimize the transformRect and transformPoint methods in matrix_utils. (#36396)"

This reverts commit 9946f7cff9621bf23c22508e7b2529e4126f7f05.

* add test
2019-07-26 22:06:03 -07:00
chunhtai
48c7090f3c
Revert "Enable selection by default for password text field and expose api to turn on and off context menu options (#34676)" (#37055)
This reverts commit 0d0af31598f5ee0552529bfd3fdc35be1d8fe176.
2019-07-26 18:25:52 -07:00
Jonah Williams
3068fc4f7c
Revert "Fix the first frame logic in tracing and driver (#35297)" (#37027)
This reverts commit 68fc7231b33dcb3f7c9e705e321135f009afda49.
2019-07-26 13:08:36 -07:00
brettfingo
38fdf56c16 Fix slider preferred height (#36028)
[Material] Fix slider preferred height
2019-07-26 13:42:15 -04:00
LongCatIsLooong
9c8badd1b5
Add SliverLayoutBuilder (#35941) 2019-07-26 10:39:44 -07:00
lisa-liao
63992e4fde Add PopupMenuTheme to enable theming color, shape, elevation, text style of Menu (#36088)
* [Menu] Create Menu theme

* [Menu] Create Menu theme

* [Menu] Formatting changes for Menu theme

* [Menu] Fix spacing difference in theme_data.dart.

* [Menu] Fix spacing difference in theme_data.dart.

* Specifying types

* Formatting changes

* Address PR feedback

* Formatting changes

* Address PR feedback

* Add inherited widget

* Add inherited widget

* Address PR feedback and add inherited widget.

* Formatting changes.

* Address PR feedback

* Address PR feedback

* Address PR feedback

* Address PR feedback
2019-07-26 13:09:33 -04:00
gaaclarke
9b150f134b
Sped up shader warmup by only drawing on a 100x100 surface (#36482)
Sped up shader warmup by only drawing on a 100x100 surface and doing
the draw calls on top of each other.
2019-07-26 10:05:40 -07:00
chunhtai
0d0af31598
Enable selection by default for password text field and expose api to turn on and off context menu options (#34676) 2019-07-26 10:03:30 -07:00
liyuqian
68fc7231b3
Fix the first frame logic in tracing and driver (#35297)
This should fix https://github.com/flutter/flutter/issues/31442 and https://github.com/flutter/flutter/issues/34867
2019-07-26 09:38:12 -07:00
Shi-Hao Hong
2e43b47008
[Material] ToggleButtons (#34599)
* Introduces ToggleButtons widget

* Introduces ToggleButtonsTheme inherited widget

* Introduces ThemeData.toggleButtonsTheme property
2019-07-26 09:26:15 -07:00
Shi-Hao Hong
f1e87c48ef
Clarify showDuration and waitDuration API docs and test behavior (#36970)
* Improve showDuration and waitDuration explanation and tests

* Add condition to test to ensure that tooltip does not show before long press duration is over
2019-07-26 09:24:54 -07:00
Jon Tippens
a3712e361b
Fix minor typos (#36893) 2019-07-25 11:48:22 -07:00
Shi-Hao Hong
dee8e4211e
[Material] Implement TooltipTheme and Tooltip.textStyle, update Tooltip defaults (#36856)
* Implement TooltipThemeData and TooltipTheme

* Add text style property 

* Updated tooltip default colors for light and dark theme to match Material specification
2019-07-25 09:09:24 -07:00
Gary Qian
52c801dc4f
Add reference to StrutStyle from TextStyle (#36867) 2019-07-24 17:41:12 -07:00
Tong Mu
9cbac2a4ce
Revert "Dismiss modal with any button press (#32770)" (#36877)
This reverts commit 1aa4628fa27034deb68743d636be5aba04b4ad6f.
2019-07-24 14:26:46 -07:00
Shi-Hao Hong
aa6384cbac
Revert "[Material] Implement TooltipTheme and Tooltip.textStyle, fix Tooltip debugLabel, update Tooltip defaults (#36030)" (#36851)
This reverts commit 62158a1bae83aedcc88d66694010911a98fff84a.
2019-07-24 08:55:51 -07:00
Shi-Hao Hong
62158a1bae
[Material] Implement TooltipTheme and Tooltip.textStyle, fix Tooltip debugLabel, update Tooltip defaults (#36030)
* Implement TooltipThemeData and TooltipTheme

* Add tooltip text style property

* Update default tooltip text style and decoration to match Material specification

* Fix debugLabel incorrectly labeling "white" as "black", and vice versa by default
2019-07-24 08:24:09 -07:00
brandondiamond
e08538c38f Update visual style of CupertinoSwitch to match iOS 13 (#36087) 2019-07-24 08:20:19 -07:00
Harsh Bhikadia
dfc636bdd4 doc : ReorderableListView - added youtube video from WidgetOfTheWeek series (#36421) 2019-07-24 08:05:42 -07:00
K. P. Sroka
1b57006c82 Prevents infinite loop in Table._computeColumnWidths (#36262) 2019-07-23 19:51:57 -07:00
Jim Graham
9946f7cff9
Optimize the transformRect and transformPoint methods in matrix_utils. (#36396)
Primarily these methods no longer allocate any objects other than their
return values.

Additionally, the math in the methods is reduced compared to the general
case math based on known input conditions.
2019-07-23 17:25:39 -07:00
Devon Carew
d708d9deb2
add an error count field to the Flutter.Error event (#36768)
* add an error count field to the Flutter.Error event

* review comments; more tests

* normalize comments
2019-07-23 17:01:14 -07:00
Gary Qian
07fdadd1d1
Add gradient text docs (#36579) 2019-07-22 13:20:34 -07:00
chunhtai
1cb6b8bb0d
fixes iphone force press keybaord select crashes (#36698) 2019-07-22 13:20:21 -07:00
Devon Carew
45ae4f6dbe
use sentence case in error message titles (#35750)
* use sentence case in error message titles

* add a test
2019-07-22 12:49:53 -07:00
Brian Egan
70b405ee18
Add images and update examples for top widgets: (#36460)
* Add images and update examples for top widgets:

  - scaffold
  - text field
  - image
  - text
  - row
  - column
  - stack
2019-07-22 18:34:56 +02:00
Todd Volkert
fbd4bb91f6
Revert "AsyncSnapshot.data to throw if error or no data (#34626)" (#36618)
This reverts commit b61fcfd25d0b32ec3791d09493d0235bb9a2b43f.
2019-07-20 22:10:59 -07:00
Yegor
ecd89fb7ad
fix message codecs for the Web (#36549) 2019-07-19 13:49:15 -07:00
chunhtai
5ecda9e1b5
Adds doc example for Listview and pageview (#36391) 2019-07-19 13:19:24 -07:00
chunhtai
a52f0f773c
Fixes sliver list does not layout firstchild when child reordered (#36493) 2019-07-19 12:19:05 -07:00
chunhtai
2338576aa6
implement selectable text (#34019) 2019-07-19 12:17:41 -07:00
Gary Qian
41bc10fa70
Add text border docs (#36485) 2019-07-19 12:13:00 -07:00
Kate Lovett
38e41f5aee
SliverFillRemaining accounts for child size when hasScrollBody is false (#35810)
Fixes the hasScrollBody flag not accounting for child size. Adds the ability to specify over-scroll behavior.
2019-07-19 11:35:31 -07:00