270 Commits

Author SHA1 Message Date
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
hangyu
e74b9b5bef
Migrate InputDecorator to Material 3 (#107943)
* Support material 3 in inputDecorator

* Format polish

* format polish

* update input_decorator_test

* revert pub

* style update

* style polish

* default before base

* resolve comments

* Update text_field.2.dart

* move text styles into M2 theme

* add error style

* fix typo

* resolve comments

* fix g3 test
2022-07-26 01:35:38 +08:00
Darren Austin
f396e289d5
Migrate Chips to Material 3 (#107166) 2022-07-06 13:32:44 -07:00
Darren Austin
32981c4caa
Added useMaterial3 parameters to the light, dark and fallback ThemeData constructors. (#105944) 2022-06-14 13:09:50 -07:00
Pierre-Louis
8f57f87af5
Improve useMaterial3 documentation (#104815)
* Improve `useMaterial3` documentation

* reverse styles and components

* tweak language around support

* Update theme_data.dart

* remove trailing space

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

Co-authored-by: Darren Austin <darren@darrenaustin.org>

* add missing spec links

* remove spec links from useMaterial3

* move defaults section up, rejig things

* spaces no longer trailing

* spaces no longer trailing (2)

Co-authored-by: Darren Austin <darren@darrenaustin.org>
2022-06-08 11:50:19 +02:00
Jason Simmons
116d6579c7
Remove remaining uses of hashValues in the framework (#105046) 2022-05-31 15:48:14 -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
Pierre-Louis
1e1f4bcfb5
Mention that NavigationBar is a new widget (#104264) 2022-05-21 01:25:17 +02:00
gaaclarke
64a0c19652
switched to a double variant of clamp to avoid boxing (#103559) 2022-05-18 13:26:08 -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
Michael Goderbauer
8bec125aaf
Avoid analyzing API example code twice, clean-up (#103548) 2022-05-11 21:27:45 -07:00
Andree Yosua
f5fb9e8c01
Fix ThemeData extension throws when the ThemeExtension not found (#103343) 2022-05-10 21:44:07 -07:00
Darren Austin
14a9b4a751
Migrate AppBar to Material 3 (#101884) 2022-04-27 12:04:36 -07:00
Pierre-Louis
9644aa8d76
Fixes documentation inconsistencies around 'material' and 'material design' (#102632) 2022-04-27 09:29:06 -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
ff5e27f0fc
Remove deprecated FlatButton (#98545) 2022-04-11 16:22:47 -05:00
Darren Austin
c14ca6d321
Migrate common buttons to Material 3 (#100794) 2022-04-08 17:03:21 -07:00
Kate Lovett
82d4dbb6cf
Remove text selection ThemeData deprecations 3 (#100586) 2022-04-06 11:26:50 -05:00
Kate Lovett
afe6c2e78d
Remove deprecated RaisedButton (#98547) 2022-04-06 11:26:25 -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
Taha Tesser
321ffa2ead
Move ListTileTheme and its tests into separate classes and add visualDensity to the ListTileTheme (#100622) 2022-03-23 13:29:30 -07:00
Darren Austin
86c02e998b
Migrate Card widget to Material 3. (#100532) 2022-03-22 13:46:56 -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
Anthony
7c73053f70
[Material] Use InkSparkle for splashFactory in ThemeData when useMaterial3 is true for Android non-web runtimes (#99882)
[Material] Use InkSparkle for splashFactory in ThemeData when useMaterial3 is true for Android non-web runtimes (#99882)
2022-03-17 20:49:42 -04:00
Darren Austin
6ec0b83580
Add support for surface tint color overlays to Material widget. (#100036) 2022-03-17 15:58:24 -07:00
Kate Lovett
21320a1da5
Revert "Remove expired ThemeData deprecations" (#99920) 2022-03-10 11:00:17 -08:00
Darren Austin
57aa49028d
Migrate NavigationRail to Material 3. (#99171) 2022-03-09 16:01:03 -08:00
Kate Lovett
9291c8ba31
Remove expired ThemeData deprecations (#98578) 2022-03-09 16:00:08 -08:00
Kate Lovett
9240c9a02a
Remove deprecated OutlineButton (#98546) 2022-03-08 15:40:14 -08:00
Taha Tesser
5733374841
Migrate Dialog to Material 3 (#98919) 2022-03-04 13:16:17 -08:00
Viren Khatri
078deb9230
Migrates packages/flutter to from hashValues to Object.hash (#96109)
* migrates lib/foundation and lib/widgets

* migrates lib/painting and lib/material

* migrates lib/cupertino, lib/gestures, lib/services, lib/semantics and lib/rendering

* fixes failing tests

* migrates test/

* improves hashing of lists
2022-03-01 23:54:11 +05:30
Taha Tesser
60f039cb1c
Add ExpansionTileTheme (#98405) 2022-02-15 08:44:33 -08:00
Darren Austin
ca2a751661
Migrate NavigationBar to M3 tokens. (#98285) 2022-02-15 00:40:20 -08:00
Darren Austin
93a1b7a577
Material 3 Typography support. (#97829) 2022-02-07 17:00:22 -08:00
Marcel Kirchhoff
fdf8627c95
Fix VisualDensity's vertical lerp implementation (#96597)
Fixes #96591
2022-02-02 09:22:57 -08:00
Michael Goderbauer
5684b9f69e
Enable no_leading_underscores_for_local_identifiers (#96422) 2022-01-21 14:43:59 -08:00
Darren Austin
2ab2ca2bc6
Migrate FloatingActionButton to Material 3 (#94486) 2022-01-12 19:15:15 -08:00
Darren Austin
8630315aad
API to generate a ColorScheme from a single seed color. (#93463) 2021-12-03 14:29:05 -08:00
Hans Muller
bb3b45a7f8
Reland "ChipThemeData is now conventional" (#94179) 2021-12-01 11:50:53 -08:00
Hans Muller
ab7161fab8
Revert "ChipThemeData is now conventional" (#93797) 2021-11-19 17:38:06 -08:00
Darren Austin
7d0981770c
Added useMaterial3 flag to ThemeData. (#93434) 2021-11-18 22:28:07 -08:00
Pierre-Louis
e1a96b812e
Deprecate primaryColorBrightness (#93396) 2021-11-16 15:03:03 -08:00
Hans Muller
8612f80ab1
ChipThemeData is now conventional (#93452) 2021-11-16 15:00:47 -08:00
Pierre-Louis
223f8ed68b
Reland "Refactor ThemeData (#91497)" (part 2) (#92970) 2021-11-08 12:07:31 -08:00
Pierre-Louis
3ccf730ad7
Reland "Refactor ThemeData (#91497)" (part 1) (#92822) 2021-11-01 21:09:13 +01:00