136 Commits

Author SHA1 Message Date
Kate Lovett
721016c1db
Remove deprecated androidOverscrollIndicator from ScrollBehaviors (#133181) 2023-08-25 15:13:42 -05:00
Polina Cherkasova
a7b69b069f
Unpin leak_tracker and handle breaking changes in API. (#132352) 2023-08-14 10:05:20 -07:00
Polina Cherkasova
e8b397caca
Setup leak tracking regression for material. (#130169) 2023-07-22 06:45:27 -07:00
Qun Cheng
a5f8b64ef9
Update unit tests in material library for Material 3 (#128725)
Updates most of the unit tests in the packages/flutter/test/material folder so that they'll pass if ThemeData.useMaterial3 defaults to true.

All of the tests have wired useMaterial3 to false and will need to be updated with a M3 version.

related to #127064
2023-06-13 21:21:13 +00:00
Greg Spencer
0da6f04f07
Remove references to deprecated ThemeData.primaryColorBrightness (#127238)
## Description

Removes references to `ThemeData.primaryColorBrightness`, deprecated in https://github.com/flutter/flutter/pull/93396 and subject to remove now because of our [deprecation policy](https://github.com/flutter/flutter/wiki/Tree-hygiene#deprecations).

## Related PRs
 - https://github.com/flutter/flutter/pull/93396

## Tests
 - Removed unneeded tests, removed references.
2023-05-26 22:33:58 +00:00
Renzo Olivares
d44d657ade
Remove deprecated fixTextFieldOutlineLabel (#125893)
The deprecation period has elapsed. The method was made obsolete in https://github.com/flutter/flutter/pull/87281.
2023-05-17 22:56:14 +00:00
Greg Spencer
692a7efa3f
Initialize ThemeData.visualDensity using ThemeData.platform instead of defaultTargetPlatform (#124357)
Initialize `ThemeData.visualDensity` using `ThemeData.platform` instead of `defaultTargetPlatform`
2023-04-07 01:44:23 +00:00
Qun Cheng
0300cfa603
Create SearchAnchor and SearchViewTheme Widget (#123256) 2023-03-27 23:31:11 -07:00
Michael Goderbauer
fda9ecfef7
Remove 1745 decorative breaks (#123259)
Remove 1745 decorative breaks
2023-03-22 21:12:22 +00:00
Qun Cheng
5180e45080
Create SearchBar and SearchBarTheme (#122309) 2023-03-16 15:04:19 -07:00
LongCatIsLooong
f4551e6450
Reland "Update test font (#121306)" (#122068)
Reland "Update test font (#121306)"
2023-03-09 19:05:32 +00:00
LongCatIsLooong
33ffdd704f
Revert "Update test font (#121306)" (#122053)
This reverts commit 9f69a3679bc441d3ff985362e47b80ee2a51c60f.
2023-03-06 14:15:58 -08:00
LongCatIsLooong
9f69a3679b
Update test font (#121306)
Update test font
2023-03-06 21:46:51 +00:00
Mushaheed Syed
7d85a585da
Add ActionButtonIconsData for overriding action icons (#118229)
* Add ActionButtonIconsData for overriding action icons

* Fix formatting issues

* Add missing exports in material library and add copyWith method in ActionButtonIconsData

* Move all action buttons, and icons to action_buttons.dart

* Rename actionButtonIcons to actionIconTheme

* Refactor buttons in action_buttons.dart to extend a private class for common implementation

* Refactor icons in action_buttons

* Fix docs in action_buttons_theme

* Fix #107646 always use 'Icons.arrow_back' as a back_button icon in web

* Update documentation for action buttons and add style parameter to every action button

* Fix analyzer warnings

* Add missing style argument in IconButton of _ActionButton

* Add tests for action buttons, action icon theme, drawer buttons, and back buttons

* Add example (+test) for action icon button's action icon theme in examples/api

* Fix analysis errors

* Add missing license header in action_icon_theme.0.dart

* Fix deprecation notice in theme_data.dart

* Update theme data tests for actionIconTheme

* Remove iconSize parameter from ActionButtons and update docs

* Fix failing tests

* Update button color during backbutton tests to red

* Fix analytics issues

* Fix format
2023-02-22 09:22:44 -08:00
Qun Cheng
f99f472807
Remove the deprecated accentColor from ThemeData (#120932)
Co-authored-by: Qun Cheng <quncheng@google.com>
2023-02-18 01:50:05 +00:00
Qun Cheng
7bacc25eea
Remove accentColorBrightness usage (#120577) 2023-02-13 10:18:18 -08:00
Renzo Olivares
cf3fc01774
remove deprecated accentTextTheme and accentIconTheme from ThemeData (#119360)
Co-authored-by: Renzo Olivares <roliv@google.com>
2023-02-07 05:40:18 +00:00
Hans Muller
198a51ace9
Migrate the Material Date pickers to M3 Reprise (#119033) 2023-01-31 15:31:06 -08:00
Greg Spencer
df4420835d
Remove ThemeData.buttonColor references (#118658)
* Remove ThemeData.buttonColor references

* Fix test

* Remove more buttonColors

* Macro the definition of color scheme

* remove doc reference
2023-01-24 01:31:58 +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
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
hangyu
0e57147db1
nav drawer (#115668) 2022-11-18 15:10:05 -08:00
Darren Austin
6ec2bd0a80
M3 Segmented Button widget (#113723) 2022-11-11 22:13:57 -08:00
Hans Muller
5a600456b0
Reland: Adds support for the Material Badge widget, BadgeTheme, BadgeThemeData (#114560) (#115002)
Requires G3Fix cl/486997831
2022-11-10 11:05:50 -08:00
Hans Muller
d6a8e92cd6
Revert "Adds support for the Material Badge widget, BadgeTheme, BadgeThemeData (#114560)" (#114819)
This reverts commit a6da1042a819f7a93eb655d493db914561f93f83.
2022-11-07 08:50:56 -08:00
Hans Muller
a6da1042a8
Adds support for the Material Badge widget, BadgeTheme, BadgeThemeData (#114560) 2022-11-06 17:21:08 -08:00
Qun Cheng
cc435d673e
Fix Color Scheme Defaults in Material 3 (#112666) 2022-10-28 10:30:59 -07:00
Greg Spencer
8c271e5cb8
Implement Material MenuBar and MenuAnchor (#112239)
This implements a MenuBar widget that can render a Material menu bar, and a MenuAnchor widget used to create a cascading menu in a region. The menus are drawn in the overlay, while the menu bar itself is in the regular widget tree. Keyboard traversal works between the two.

This implementation of the MenuBar uses MenuAnchor to create a cascading menu that contains widgets representing the menu items. These menu items can be any kind of widget, but are typically SubmenuButtons that host submenus, or MenuItemButtons that have shortcut hints (but don't actually activate the shortcuts) and don't host submenus.

Cascading menus can be created outside of a MenuBar by using a MenuAnchor. They can be either given a specific location to appear (a coordinate), or they can be located by the MenuAnchor region that wraps the control that opens them.

The developer may also create a MenuController to pass to the various menu primitives (MenuBar or MenuAnchor) to associate menus so that they can be traversed together and closed together. Creating a controller is not required.
2022-09-28 14:10:18 -07:00
Eilidh Southren
1ed2312493
Deprecate ThemeDate.bottomAppBarColor (#111080)
* test commit

* Deprecate BottomAppBarColor field

* test commit

* Deprecate BottomAppBarColor field

* Update fix_data.yaml & tests

* remove text.txt

* Update PR ID values

* Update fix_data.yaml

* Make deprecation changes non-breaking

* Whitespace formatting

* Modify docstring, retain bottomAppBarColor default

* Modify theme_data_test.dart

* Update docstrings
2022-09-08 12:36:07 +01:00
Pierre-Louis
8853926601
Deprecate ThemeData errorColor and backgroundColor (#110162) 2022-09-02 04:02:55 +00:00
Darren Austin
5454bab6c1
Added support for M3 filled and filled tonal buttons. (#107382) 2022-08-25 11:36:03 -07:00
Pierre-Louis
360ac5bc79
Add covariant to ThemeExtension.lerp (#105207)
* Add covariant to `ThemeExtension.lerp`

* x

* x
2022-08-24 18:18:39 +02:00
Kate Lovett
7e12b37111
Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
Kate Lovett
8c44c16268
Deprecate ThemeData.selectedRowColor (#109070) 2022-08-09 22:29:08 +00:00
Qun Cheng
f7b0023439
Added IconButtonTheme and apply it to IconButton in M3 (#108332)
* Created IconButtonTheme and apply it to IconButton
2022-08-03 13:47:44 -07:00
Taha Tesser
52829523d6
Deprecate toggleableActiveColor (#97972) 2022-08-02 19:09:06 +00:00
Darren Austin
4c104effe1
Removed references to deprecated styleFrom parameters. (#108401) 2022-07-27 03:32:05 +00:00
Darren Austin
32981c4caa
Added useMaterial3 parameters to the light, dark and fallback ThemeData constructors. (#105944) 2022-06-14 13:09:50 -07:00
Darren Austin
c27a1a70f3
Update material_color_utilities dependency to 0.1.5. (#104771) 2022-05-27 11:18:12 -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
Greg Spencer
08496712b0
Reorder Theme fields and arguments to be consistently alphabetical within sections. (#104011) 2022-05-17 20:57:08 -07:00
Andree Yosua
f5fb9e8c01
Fix ThemeData extension throws when the ThemeExtension not found (#103343) 2022-05-10 21:44:07 -07:00
Alexandre Ardhuin
07f1c20474
add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
Kate Lovett
c2ec2426ac
Removed required from deprecated API (#102107) 2022-04-19 08:44:08 -07:00
Kate Lovett
82d4dbb6cf
Remove text selection ThemeData deprecations 3 (#100586) 2022-04-06 11:26:50 -05:00
Darren Austin
a8e6fd5ba7
Material 3 common buttons should use sparkle splash effect on Android. (#101075) 2022-03-30 20:20:13 -07:00
Kate Lovett
d435b72448
Revert "Re-land text selection theme clean up" (#100564) 2022-03-22 10:30:22 -07:00
Kate Lovett
63a12b3d31
Re-land text selection theme clean up (#99927) 2022-03-21 17:56:28 -05:00
Kate Lovett
5bc9340233
Put stretch indicator behind m3 flag (#100234) 2022-03-21 17:55:57 -05:00
Pierre-Louis
8c1c2f6af5
Introduce Theme extensions (#98033)
* first pass

* x

* x

* address feedback

* support multiple extensions

* add convenience function, Object ⇒ dynamic, lerping

* remove not-useful comment

* fix examples/api lower sdk constraint

* remove trailing spaces

* remove another pesky trailing space

* improve lerp

* address feedback

* hide map implementation from constructor and copyWith

* use iterableproperty

* Revert "hide map implementation from constructor and copyWith"

This reverts commit a6994af0046e3c90dbc9405cac628feb5b2d3031.

* slow down sample

* make theme extension params required

* add null check

* improve documentation

* fix hashCode and operator == overrides

* modify existing tests

* remove trailing spaces

* add all tests except lerping

* fix lerping bug

* add toString to themeExtension example

* add lerping test

* assume non-nullability in example

* address feedback

* update docs

* remove trailing space

* use Map.unmodifiable
2022-03-21 15:26:30 +01:00