1356 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
William Oprandi
756a1f0301
Pass showCheckboxColumn parameter to DataTable (#53655) 2020-04-10 10:39:47 -07:00
Greg Spencer
d64955ab49
Add visualDensity and focus support to ListTile (#53888) 2020-04-10 10:20:02 -07:00
Gary Qian
19ff596979
Add missing properties to TextStyle.apply (#54305) 2020-04-08 15:42:02 -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
EricEnslen
cccfe96e72
Allow ListTiles to be autofocused (#54229)
Adds an "autofocus" param to ListTile and its Checkbox, Radio and Switch variants, and passes the given value through to the wrapped InkWell, Switch, etc.

This is important for scenarios like a settings screen, where the first interactable element on a page may be a SwitchListTile, for example.
2020-04-07 15:39:44 -07:00
Jose Alba
3441d6cbe7
Slider rebase work (#53916)
* [Slider] Rebase.

* disabled thumb color with alphaBlend of colorScheme surface

* test remove alphablend

* Change rectangular track to how it used to be

* Chaned to adaptive slider

* blank lines

Co-authored-by: Will Larche <larche@google.com>
2020-04-07 17:10:18 -04:00
Darren Austin
d35ade4a6c
Added 'barrierColor' and 'useSafeArea' parameters to showDialog. (#54110) 2020-04-06 11:26:01 -07:00
Greg Spencer
a8b3d1b74f
Add toggleable attribute to Radio (#53846)
This adds a new toggleable attribute to the Radio widget. This allows a radio group to be set back to an indeterminate state if the selected radio button is selected again.

Fixes #53791
2020-04-02 15:40:37 -07:00
impure
191f86ea05
Added ability to change dropdown colour manually (#52982) 2020-04-02 10:21:04 -07:00
Darren Austin
f2acfbca82
Material Date Picker should honor DialogTheme shape, and elevation. (#53713)
* Date Picker should honor DialogTheme shape, and elevation.
2020-04-01 00:45:45 -07:00
Greg Spencer
2a649b16e2
Add an adaptive visual density static function, and add it to… (#51921)
Adds a VisualDensity.adaptivePlatformDensity static function that returns different values for visual density based on the defaultTargetPlatform. Returns compact for desktop platforms, and a default visual density for other platforms.
2020-03-31 16:16:25 -07:00
Jose Alba
d14a301e41
Revert "[Slider] Rebase. (#52663)" (#53698)
This reverts commit e71cf1cdbeebab9081d09daa73d4d7642f165b9d.
2020-03-31 16:14:22 -07:00
Jose Alba
e71cf1cdbe
[Slider] Rebase. (#52663) 2020-03-31 10:56:01 -07:00
Shi-Hao Hong
85e5b210b4
Implement DropdownMenuItem.onTap (#53368)
* Implement DropdownMenuItem.onTap
2020-03-30 13:48:40 -07:00
Darren Austin
c7a6e300dd
Fixed a bug with the month grid showing the wrong month after selecting a date. (#53594) 2020-03-30 13:45:33 -07:00
Ayush Bherwani
08ee37e1c1
[RefreshIndicator] adds strokeWidth parameter to RefreshIndicator (#53344) 2020-03-30 12:56:06 -07:00
Shi-Hao Hong
57d7946b2f
Implement DropdownButton and DropdownButtonFormField onTap callback (#53105) 2020-03-30 12:46:02 -07:00
Darren Austin
4dd9136397
Reset autovalidate in the text input form field of the Date Picker when switching back to input mode from calendar mode. (#53434) 2020-03-27 15:06:01 -07:00
Onat Çipli
ac3b77bdac
Scrollbar display always (#50752) 2020-03-27 14:51:03 -07:00
Anthony
0d111bc91a
[Material] Create a Navigation Rail component and theme (#49574) 2020-03-26 13:31:02 -07:00
Darren Austin
142b526f1b
Material Date Picker redesign (#50546)
Date Picker UI redesign
2020-03-24 18:44:57 -07:00
Dan Field
25ef78e234
Revert "Revert "Fix RefreshIndicator performance issue (#47667)" (#53149)" (#53206) 2020-03-24 17:56:01 -07:00
Jussi Lahdenniemi
600a3a74ea
Fix to DrawerController: Call the callback when drawer opened/closed with a fling. (#52593) 2020-03-24 15:56:03 -07:00
Dan Field
f3d95cd734
Revert "Fix RefreshIndicator performance issue (#47667)" (#53149)
This reverts commit 602ac0bc10c9783c4bb94ba8583ee2765a3cc313.
2020-03-24 09:55:47 -07:00
Ferhat
fed6887aa0
Remove implements Function (#53113) 2020-03-23 11:54:32 -07:00
Christian Mürtz
602ac0bc10
Fix RefreshIndicator performance issue (#47667) 2020-03-23 10:51:02 -07:00
LongCatIsLooong
87cbddddd8
Let cupertino & material switches move to the right state after dragging (#51606) 2020-03-20 15:56:01 -07:00
Yegor
2e36be7691
Enable more material and cupertino tests on the Web (#52961) 2020-03-20 11:36:24 -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
rami-a
e2610a450c
[Material] Allow Appbar to exclude header semantics (#52894) 2020-03-19 15:06: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
Justin McCandless
a811bce4b0
TextField behavior when at maxLength (#52130)
TextFields now disallow adding characters in the center of the text at maxLength.
2020-03-18 08:02:22 -07:00
Ayush Bherwani
60b9d15495
[RaisedButton] Added padding property to RaisedButton.icon (#52393) 2020-03-13 17:21:02 -07:00
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
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
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
Per Classon
88852731a5
Validate text selection before updating it inside of EditableText (#51410) 2020-03-06 01:26:01 -08: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
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
Pierre-Louis
ec64f93fdd
Material Bottom Sheet Reveal/Dismiss animation uses a curved animation (#51122) 2020-03-02 09:49:03 -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
Dan Field
444b13b895
Colored box and container optimization (#50979) 2020-02-26 16:04:35 -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