Skip to content

Commit 108dad0

Browse files
authored
[material_ui] Migrate M3 IconButton template to use new gen_defaults (#12922)
Work toward flutter/flutter#187899. Fixes flutter/flutter#188417. This PR migrates the M3 IconButton defaults templates to use the new `gen_defaults` in `material_ui`. The `IconButton`, `IconButton.filled`, `IconButton.filledTonal`, and `IconButton.outlined` defaults are generated into separate files. The generated defaults remain unchanged. ## Pre-Review Checklist
1 parent 9b05755 commit 108dad0

9 files changed

Lines changed: 415 additions & 855 deletions

File tree

packages/material_ui/tool/gen_defaults/temporarily_excluded/generated/filled_icon_button_defaults.g.dart renamed to packages/material_ui/lib/src/generated/filled_icon_button_defaults_m3.g.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// Do not edit by hand. The code is generated from data in the Material
6+
// Design token database by the script:
7+
// packages/material_ui/tool/gen_defaults/bin/gen_defaults.dart.
8+
part of '../icon_button.dart';
9+
510
class _FilledIconButtonDefaultsM3 extends ButtonStyle {
611
_FilledIconButtonDefaultsM3(this.context, this.toggleable)
712
: super(

packages/material_ui/tool/gen_defaults/temporarily_excluded/generated/filled_tonal_icon_button_defaults.g.dart renamed to packages/material_ui/lib/src/generated/filled_tonal_icon_button_defaults_m3.g.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// Do not edit by hand. The code is generated from data in the Material
6+
// Design token database by the script:
7+
// packages/material_ui/tool/gen_defaults/bin/gen_defaults.dart.
8+
part of '../icon_button.dart';
9+
510
class _FilledTonalIconButtonDefaultsM3 extends ButtonStyle {
611
_FilledTonalIconButtonDefaultsM3(this.context, this.toggleable)
712
: super(

packages/material_ui/tool/gen_defaults/temporarily_excluded/generated/icon_button_defaults.g.dart renamed to packages/material_ui/lib/src/generated/icon_button_defaults_m3.g.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// Do not edit by hand. The code is generated from data in the Material
6+
// Design token database by the script:
7+
// packages/material_ui/tool/gen_defaults/bin/gen_defaults.dart.
8+
part of '../icon_button.dart';
9+
510
class _IconButtonDefaultsM3 extends ButtonStyle {
611
_IconButtonDefaultsM3(this.context, this.toggleable)
712
: super(

packages/material_ui/tool/gen_defaults/temporarily_excluded/generated/outlined_icon_button_defaults.g.dart renamed to packages/material_ui/lib/src/generated/outlined_icon_button_defaults_m3.g.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// Do not edit by hand. The code is generated from data in the Material
6+
// Design token database by the script:
7+
// packages/material_ui/tool/gen_defaults/bin/gen_defaults.dart.
8+
part of '../icon_button.dart';
9+
510
class _OutlinedIconButtonDefaultsM3 extends ButtonStyle {
611
_OutlinedIconButtonDefaultsM3(this.context, this.toggleable)
712
: super(

0 commit comments

Comments
 (0)