3989 Commits

Author SHA1 Message Date
hangyu
003608f182
Update text field input width when there are prefix/suffix icons (#116690)
* Update input_decorator_test.dart

Update input_decorator.dart

Update input_decorator.dart

Update input_decorator.dart

Update input_decorator.dart

Update input_decorator.dart

Revert "Update input_decorator.dart"

This reverts commit 6a6d2fd0c145c15440405060190ef714b78441c9.

Update input_decorator.dart

Update input_decorator_test.dart

Update input_decorator.dart

lint

* Update input_decorator.dart
2022-12-08 10:27:46 -08:00
zmtzawqlp
2ffc5bc17e
Fix wrong position of TabBarIndicator when it's label size and has label padding (#116398) 2022-12-08 17:05:23 +00:00
chunhtai
521028c808
Reland "Use semantics label for backbutton and closebutton for Android" (#116676)
* Reland "Use semantics label for backbutton and closebutton for Android"

This reverts commit cc256c3e33d74ed861640e09e8e21957ddd94c1e.

* Makes the semantics slider test more robust
2022-12-07 21:46:17 +00:00
chunhtai
cc256c3e33
Revert "Use semantics label for backbutton and closebutton for Android" (#116675)
This reverts commit 68ce1aeaeb33ad960fb5195852e4dc66f680d4ff.
2022-12-07 10:33:44 -08:00
chunhtai
68ce1aeaeb
Reland "Use semantics label for backbutton and closebutton for Android" (#115776)
* Reland "Use semantics label for backbutton and closebutton for Android"

This reverts commit 20a78ed69f45502344010aedff4d915db27072b2.

* change to default target platform
2022-12-07 18:03:17 +00:00
chunhtai
352ad3a9ef
Adds API in semanticsconfiguration to decide how to merge child semanticsConfigurations (#110730)
* Adds semantics merger API and fix input decorator

* addressing comments

* abstractnode to object

* feature complete

* addressing comments

* fix comments

* conditionally add sort order

* fix bool

* fix test

* more fix

* fix tests
2022-12-07 16:59:16 +00:00
harperl-lgtm
a570fd25d8
Date picker special labeling for currentDate with localization and te… (#116433)
* Date picker special labeling for currentDate with localization and tests.

* Updated CalendarDatePicker semantics test

* removed recursive import

* changed labeling for current date to be less verbose
2022-12-07 09:21:44 -05:00
Greg Spencer
31719941c0
Time picker precursors (#116450)
* Make some minor changes in preparation for updating the Time Picker to M3

* Revert OutlineInputBorder.borderRadius type change

* Revert more OutlineInputBorder.borderRadius changes.
2022-12-07 02:07:25 +00:00
Greg Spencer
577a88b222
Fix MenuAnchor padding (#116573)
* Fix MenuAnchor padding

* Add tests
2022-12-06 21:30:25 +00:00
Pierre-Louis
1e696d304c
Support theming CupertinoSwitchs (#116510)
* Introduce flag to maximally apply CupertinoTheme

* add missing docs

* add tests

* fix docs

* fix test
2022-12-06 15:32:58 +01:00
Todd Volkert
934e690082
Add widget of the week videos (#116451)
(and remove one video that was listed twice with the same widget)
2022-12-03 04:31:15 +00:00
Eilidh Southren
22cbef3050
[CP] Fix Snackbar TalkBack regression (#116417)
* Add M2 defaults and template skeleton

* add MaterialStateColor functionality to ActionTextColor (issue #110402)

* Add M2 defaults and template skeleton

* updated material 3 tokens

* Updated snackbar demo

* add theme tests

* add gen defaults

* formatting

* more whitespace fixes

* add widget type

* update docs

* code review changes

* Add line overflow functionality

* whitespace fixes

* update M3 animation

* whitespace fixes

* add insetPadding param

* Modifed icon parameter to showCloseIcon

* white space fixes

* test fixes

* rename iconColor to closeIconColor

* debug test fix

* de-britishification

* g3fix

* g3fix

* debug test fix

* Fix Snackbar talkback regression

* fix merge weirdness

* test fix

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error
2022-12-02 20:17:20 +00:00
Qun Cheng
6bb412e35e
Added controller and onSelected properties to DropdownMenu (#116259) 2022-11-30 16:58:21 -08:00
Taha Tesser
aaa4a52839
Add Material 3 Slider example (#115638)
* Add Material 3 `Slider` example

* Update doc

* Update test titles
2022-12-01 00:00:19 +00:00
Casey Hillers
d2af134578
Revert "Fix Slider semantic node size (#115285)" (#116294)
This reverts commit 8473da22cde2fcedd51af654822cac83a9b5ecb5.
2022-11-30 11:21:39 -08:00
Eilidh Southren
29422d25fe
M3 snackbar [re-land] (#116218)
* Add M2 defaults and template skeleton

* add MaterialStateColor functionality to ActionTextColor (issue #110402)

* Add M2 defaults and template skeleton

* updated material 3 tokens

* Updated snackbar demo

* add theme tests

* add gen defaults

* formatting

* more whitespace fixes

* add widget type

* update docs

* code review changes

* Add line overflow functionality

* whitespace fixes

* update M3 animation

* whitespace fixes

* add insetPadding param

* Modifed icon parameter to showCloseIcon

* white space fixes

* test fixes

* rename iconColor to closeIconColor

* debug test fix

* de-britishification

* g3fix

* g3fix

* debug test fix
2022-11-30 19:13:00 +00:00
Taha Tesser
a52293843c
[Reland] Add Material 3 support for TabBar (#116283)
* Add Material 3 support for `TabBar`

* M3 `TabBar` revert fix and tests
2022-11-30 17:58:07 +00:00
Pierre-Louis
b2672fe835
Revert "Add Material 3 support for TabBar (#116110)" (#116273)
This reverts commit 900b395451bb29748b07ac45467b93b2f5490102.
2022-11-30 13:20:19 +00:00
Darren Austin
b30eb6c54d
Updated useMaterial3 documentation to include missing M3 components. (#116234)
* Updated `useMaterial3` documentation to include missing M3 components.

* Fixed typo
2022-11-30 03:07:12 +00:00
Taha Tesser
8473da22cd
Fix Slider semantic node size (#115285) 2022-11-30 02:27:45 +00:00
Taha Tesser
333397a0ed
Fix Material 3 BottomSheet example (#116112)
fix title
2022-11-30 02:08:21 +00:00
Darren Austin
322dd06d6e
Updated the M3 textTheme to use onSurface color for all styles. (#116125) 2022-11-29 18:03:33 -08:00
hangyu
afda8153fd
Adjust Material 3 textfield padding to align with specs (#116225)
* Adjust textfield padding

* lint

* lint
2022-11-29 17:07:32 -08:00
Mohammed CHAHBOUN
a9c2f8b9e9
Add onFocusChange property for ListTile widget (#111498) 2022-11-29 15:46:40 -08:00
Taha Tesser
900b395451
Add Material 3 support for TabBar (#116110) 2022-11-29 22:36:37 +00:00
Qun Cheng
8b86d238b4
Create DropdownMenu Widget to Support Material 3 (#116088)
* Created ComboBox

* Fixed failing tests

* Reverted the menu style tests change

* Addressed comments

* Updated documentation and rename foregroundColor variable

* Remamed ComboBox to DropdownMenu

* Removed a unused import

* Removed unused import

Co-authored-by: Qun Cheng <quncheng@google.com>
2022-11-29 22:36:35 +00:00
Kate Lovett
8b32ac7a51
Revert "Update SnackBar to support Material 3" (#116199)
* Revert "Update SnackBar to support Material 3 (#115750)"

This reverts commit d58855c49986d46588b0e2b1bf2f8b2bb97e3932.

* Kick ci.yaml

Co-authored-by: Jenn Magder <magder@google.com>
2022-11-29 19:11:43 +00:00
Eilidh Southren
d58855c499
Update SnackBar to support Material 3 (#115750)
* Add M2 defaults and template skeleton

* add MaterialStateColor functionality to ActionTextColor (issue #110402)

* Add M2 defaults and template skeleton

* updated material 3 tokens

* Updated snackbar demo

* add theme tests

* add gen defaults

* formatting

* more whitespace fixes

* add widget type

* update docs

* code review changes

* Add line overflow functionality

* whitespace fixes

* update M3 animation

* whitespace fixes

* add insetPadding param

* Modifed icon parameter to showCloseIcon

* white space fixes

* test fixes

* rename iconColor to closeIconColor

* debug test fix

* de-britishification
2022-11-29 18:02:34 +00:00
Greg Spencer
0cb9f70460
Menu bar accelerators (#114852)
* Add MenuMenuAcceleratorLabel to support accelerators.

* Review Changes

* Review Changed

* Fix default label builder to use characters

* Remove golden test that shouldn't have been there.
2022-11-29 00:27:20 +00:00
Taha Tesser
beaabb70c5
Add IndicatorShape to NavigationRailTheme and fix indicator ripple. (#116108)
* Add `IndicatorShape` to `NavigationRailTheme` and fix  indicator ripple.

* remove unused variables
2022-11-28 20:44:29 +00:00
Bruno Leroux
d841d32146
TabBar should adjust scroll position when Controller is changed (#116019)
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
2022-11-28 15:51:17 +00:00
Jonathan Goyvaerts
2703a2bcde
Fix current day not being decorated when it was disabled for picking. (#115240)
Fixes flutter/flutter#113277
2022-11-27 22:41:07 -08:00
Darren Austin
96d7f9cb13
Updated tokens to v0_143. (#115890) 2022-11-27 22:08:48 -08:00
hangyu
0e57147db1
nav drawer (#115668) 2022-11-18 15:10:05 -08:00
Bruno Leroux
2cb2e84a39
Add more InkWell tests (#115634)
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
2022-11-18 20:12:19 +00:00
Taha Tesser
ca78327402
Fix NavigationBar ripple (#115499)
* Fix `NavigationBar` ripple

* remove unused import
2022-11-18 18:47:17 +00:00
Bruno Leroux
87cb150c20
InkResponse highlights can be updated (#115635)
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
2022-11-18 15:14:53 +00:00
hangyu
f261c2f71a
update comments (#115603) 2022-11-17 19:51:22 -08:00
Bruno Leroux
710e708cce
Improve showSnackBar documentation (#114612)
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
2022-11-18 00:48:04 +00:00
Taha Tesser
ac06523b74
Add Material 3 support for Slider - Part 2 (#114624)
* Add Material 3 support for Slider - Part 2

* Kick tests

* Update drawing order to fix html renderer bug

* Update test
2022-11-17 18:33:16 +00:00
Qun Cheng
a1ea383fa5
Label should always be aligned with text in filled input decoration (#115540)
Co-authored-by: Qun Cheng <quncheng@google.com>
2022-11-17 18:27:53 +00:00
Hans Muller
70b7445cba
Reland Added Badge.count constructor (#115566) 2022-11-17 17:15:52 +00:00
Hans Muller
537f89ca0e
Revert "Added Badge.count constructor (#115297)" (#115564)
This reverts commit e9622ce93a45b6e1e5a45c7729de4fc41381dc0b.

Landing before presubmits have completed to unblock the build.
2022-11-17 08:06:24 -08:00
Hans Muller
e9622ce93a
Added Badge.count constructor (#115297) 2022-11-17 06:05:06 -08:00
Hans Muller
e8cbd444e4
Added Badge.isLabelVisible flag (#115292) 2022-11-17 06:02:42 -08:00
Jonah Williams
d01874d71e
[framework] re-rasterize page transition when layout size changes (#115371)
* [framework] autoresize on snapshot widget

* ++

* ++

* ++

* use layout to resize
2022-11-16 23:05:15 +00:00
Qun Cheng
829e44db92
Fixed label alignment (#115409)
Co-authored-by: Qun Cheng <quncheng@google.com>
2022-11-16 22:04:48 +00:00
harperl-lgtm
490fe2835d
Updated instructions for adding new localized messages. (#115390) 2022-11-16 15:44:14 -05:00
hangyu
d0e5b2fbaa
Add a way to customize padding in BottomAppBar (#115175)
* squash 5 into 1

fix

Update packages/flutter/lib/src/material/bottom_app_bar.dart

lint

update tests

Co-Authored-By: Hans Muller <hansmuller@chromium.org>

* lint

Co-authored-by: Hans Muller <hansmuller@chromium.org>
2022-11-15 15:54:52 -08:00
Tae Hyung Kim
700de09fd5
Change button and label text to sentence case for Material 3 (#115187)
* init

* upper case only when material 2

* fix test

* fix test

* fix tests again

* Add all tests

* analyze"

* fix stepper
2022-11-15 20:57:09 +00:00