2547 Commits

Author SHA1 Message Date
xubaolin
d3bc2bbcdd
[framework] fix RangeSlider regression due to touch slop changes (#106094) 2022-06-16 18:30:06 +00:00
xubaolin
ea28f287f1
fix a Scaffold extendBodyBehindAppBar update bug (#104958) 2022-06-15 18:33:06 -07:00
Pierre-Louis
1d53378bec
reland #105109 (#105588) 2022-06-14 23:39:30 +02:00
Darren Austin
32981c4caa
Added useMaterial3 parameters to the light, dark and fallback ThemeData constructors. (#105944) 2022-06-14 13:09:50 -07:00
Mahesh Jamdade
38df107b8c
Add enabled property to CheckboxlistTile (#102314) 2022-06-13 16:38:14 -07:00
cedvdb
feec13a168
Remove duplicated key in _IconButtonM3 (#105577) 2022-06-10 11:38:10 -07:00
Justin McCandless
213bf37a4d
Text handle drag swap on Apple platforms (#105069)
Dragging the base text selection handle on Apple makes it the extent.
2022-06-10 09:20:51 -07:00
Hans Muller
d8783ff4c2
Reland Added MaterialStatesController, updated InkWell et al. #103167 (#105656) 2022-06-10 08:12:49 -07:00
Benjamin Lempereur
c150c5a03d
TimePicker : Ability to define dialOnly / inputOnly modes (#104491) 2022-06-08 13:18:14 -07:00
xubaolin
0a88d820fd
fix a _ScaffoldLayout delegate update bug (#104954) 2022-06-07 15:08:09 -07:00
Qun Cheng
66a84d1fed
Migrate IconButton to Material 3 - Part 1 (#105176)
* Added standard IconButton for M3 with new ButtonStyle field

* Added IconButton examples for standard, filled, filled_tonal, and outlined types

Co-authored-by: Qun Cheng <quncheng@google.com>
2022-06-07 12:39:22 -07:00
Taha Tesser
1718519188
Fix drawers are draggable on desktop platforms (#100476) 2022-06-07 12:08:07 -07:00
takashi kasai
4b4c876fb9
Text selection located wrong position when selecting multiple lines over max lines (#102747)
Fix for text selection toolbar position in cases with overflowing text.
2022-06-07 10:13:33 -07:00
Taha Tesser
78a0111c20
Fix ButtonStyleButton ink well shape. (#100226) 2022-06-07 08:23:40 -07:00
Jonah Williams
0d3d8d4bfd
[framework] respect debugDisableShadows in slider thumbs (#105467) 2022-06-06 16:38:07 -07:00
Jiun Kim
a939d9d7a0
[Stepper] Add Alternative Label on horizontal-type Stepper (#91496)
* Add label on Step

* Add _buildLabelText, _labelStyle

* Update _buildHorizontal with _buildLabelText

* Fix Redundant Center widgets

* Fix Unnecessary Column Widget

* Fix Unnecessary import

* Fix Unnecessary Container

* Set label style to bodyText1 to match title style

* Update test for Alternative Label

* Fix code format

* Update label docstring

* Update to test textstyle of label

* Update to Test `TextStyles` of Label

* Fix typo in inline comments

* Update for Stepper type to `horizontal`

* Restore `_buildVerticalHeader`

* Update docstring, `Only [StepperType.horizontal]`

* Update for Readability

* Add `_isLabel` method

* Update `Horizontal height` with `_isLabel`

* Update to make `_buildIcon` centered

* Fix for `curly_braces_in_flow_control_structures`
2022-06-06 14:43:10 -07:00
xubaolin
d73f7ad49c
Do not crash if the controller and TabBarView are updated at different phases (build and layout) of the same frame. (#104998) 2022-06-06 14:03:08 -07:00
Taha Tesser
d4a9631651
Revert "[DataTable]: Add ability to only select row using checkbox (#105123)" (#105311) 2022-06-03 07:18:07 -07:00
Taha Tesser
5fe78541b3
[DataTable]: Add ability to only select row using checkbox (#105123) 2022-06-03 06:13:07 -07:00
Pierre-Louis
c4a6ab1626
Revert "Add actionsPadding to dialog theme (#105109)" (#105293)
This reverts commit 5d10cf550ffe271b0e40565b43d818f2a3ebf87b.
2022-06-03 09:38:01 +02:00
Taha Tesser
e02462a44f
CheckedPopupMenuItem: Fix cursor bug and add cursor parameter (#103474) 2022-06-02 23:03:09 -07:00
Taha Tesser
87804363e4
Refactor MaterialStateProperty lerp functions (#104507) 2022-06-02 13:46:39 -07:00
Zachary Anderson
d87b0dde05
Revert "Hide text selection toolbar when dragging handles on mobile (#104274)" (#105247)
This reverts commit 4ec4c249ea5d62d6ef06e6d2e6af48c4500decb2.
2022-06-02 12:37:13 -07:00
Markus Aksli
4ec4c249ea
Hide text selection toolbar when dragging handles on mobile (#104274) 2022-06-02 11:18:12 -07:00
Hans Muller
9cf042ec74
Revert "Added MaterialStatesController, updated InkWell et al. (#103167)" (#105138)
This reverts commit 180566f2e59928912c893cc0e8a12f97e653c206.
2022-06-01 17:19:16 -07:00
Pierre-Louis
5d10cf550f
Add actionsPadding to dialog theme (#105109)
* add actionsPadding to dialog theme and refactor

* fix typo

* remove trailing spaces
2022-06-01 15:52:18 +02:00
Pierre-Louis
51b2c488c7
Fix actions padding for M3 alert dialogs (#105008)
* update docs

* use correct actions padding for dialogs

* remove trailing spaces

* Update dialog_theme.dart

* Update packages/flutter/lib/src/material/dialog.dart

Co-authored-by: Taha Tesser <tessertaha@gmail.com>

Co-authored-by: Taha Tesser <tessertaha@gmail.com>
2022-06-01 10:43:16 +02:00
Taha Tesser
ee274fde1d
Fix showSearch query text field doesn't show toolbar initially when field is empty. (#105023) 2022-05-31 14:48:10 -07:00
Alexandre Ardhuin
552c50e67c
more const immutable classes (#104988)
* more const immutable classes

* more const constructors in dev/ and examples/
2022-05-31 21:56:24 +02:00
Kate Lovett
2aa7317296
Revert "Add error message and documentation when a SnackBar is off screen" (#104843) 2022-05-27 11:58:14 -07:00
Darren Austin
c27a1a70f3
Update material_color_utilities dependency to 0.1.5. (#104771) 2022-05-27 11:18:12 -07:00
Justin McCandless
b7a425f196
Right click on selection when unfocused should re-focus (#104666)
Bug fix for focusing a field with right click on existing selection (Mac and iOS)
2022-05-27 09:41:03 -07:00
Hans Muller
180566f2e5
Added MaterialStatesController, updated InkWell et al. (#103167) 2022-05-27 08:38:42 -07:00
Greg Spencer
3e7e01c893
Remove extraneous InheritedWidget (#104676)
When I removed Shortcuts.of and Shortcuts.maybeOf, I forgot to also remove the associated InheritedWidget. This does that.
2022-05-26 15:25:48 -07:00
Bruno Leroux
bc53e6202e
Add error message and documentation when a SnackBar is off screen (#102073) 2022-05-26 05:15:07 -07:00
Taha Tesser
a9c71d7e23
[Reland]: Fix DropdownButton menu clip (#104251) 2022-05-25 14:58:09 -07:00
xubaolin
5a9196737d
[Slider]The initial value of discrete slider should respect the discrete values (#103966)
Fixes #103965
2022-05-25 12:55:13 -07:00
Michael Goderbauer
d5fbc3750e
Remove unused code from tests (#104550) 2022-05-25 09:38:09 -07:00
Greg Spencer
0a417c3b49
A bunch of cleanups and a missing ShortcutRegistar in WidgetsApp (#104560)
A bunch of random cleanup things I found while doing MenuBar development.

Changes an if test to an assert in binding.dart, since the if should always be true.
Adds the default ShortcutRegistrar that should have been in the ShortcutRegistry PR.
Moves a debug message in the FocusManager to print the result after the focus change instead of before.
Reorders the test parameters in theme_data_test.dart to match the order of the theme data fields everywhere else.
2022-05-25 09:32:46 -07:00
Taha Tesser
78a0d3d4e2
[reland] Migrate ListTile TextTheme TextStyle references to Material 3 (#102167) 2022-05-25 07:28:12 -07:00
Pierre-Louis
cb9a1d623c
Use curly_braces_in_flow_control_structures for material (#104499)
* Use `curly_braces_in_flow_control_structures` for `material`

* include test/material

* add back removed comments
2022-05-25 13:17:06 +02:00
Jonah Williams
680a8192b0
[framework] ensure ink sparkle is disposed (#104569) 2022-05-24 21:23:09 -07:00
chunhtai
efb9368573
Supports global selection for all devices (#95226)
* Support global selection

* addressing comments

* add new test

* Addressing review comments

* update

* addressing comments

* addressing comments

* Addressing comments

* fix build
2022-05-24 13:53:55 -07:00
chunhtai
bd7d34f09d
Reland "Fix Backbutton is not displayed when there is a endDrawer (#1… (#104110)
* Reland "Fix Backbutton is not displayed when there is a endDrawer (#102093)"

This reverts commit a4a8e73bce152ab39d6ae839ca51e447f87293fa.

* add todos
2022-05-24 13:39:46 -07:00
Xilai Zhang
de230d393c
Revert "Add ability for ModalRoutes to ignore pointers during transitions and do so on Cupertino routes (#95757)" (#104520)
This reverts commit 4c0b0be2da5d1ee80c3d713e68ddd88d2cf2e72d.
2022-05-24 11:10:13 -07:00
Taha Tesser
a12a69a47c
Fix BottomAppBar dip without FAB (#104490) 2022-05-24 03:13:08 -07:00
Darren Austin
eadd07b0b9
Fix ColorScheme.copyWith for surfaceTint (#104435) 2022-05-23 20:24:18 -07:00
Darren Austin
b08b88ce6c
Add support for Material 3 medium and large top app bars. (#103962)
* Add support for M3 AppBar 'Medium' and 'Large' types.

* Updates from review feedback.

* Updated from review feedback.
2022-05-20 14:02:25 -07:00
Casey Hillers
da105b2b24
Revert "[framework] inline AbstractNode into RenderObject" (#104257) 2022-05-20 11:43:11 -07:00
Bruno Leroux
afdfc56bbb
Fix tooltips don't dismiss when using TooltipTriggerMode.tap (#103960) 2022-05-20 04:58:06 -07:00