Add Card.filled and Card.outlined factory methods (#136229)
Fixes #119401 This PR is to: * add `Card.filled` and `Card.outlined` factory methods so that we can use tokens for these two types of cards to generate default theme instead of providing hard-corded values in example. * update card.2.dart example. * add test file for card.2.dart example. * fix some mismatch caused by editing the auto-generated defaults by hand in navigation_bar.dart and navigation_drawer.dart.
This commit is contained in:
@@ -203,6 +203,10 @@ md.comp.filled-button.label-text.text-style,
|
||||
md.comp.filled-button.pressed.container.elevation,
|
||||
md.comp.filled-button.pressed.state-layer.color,
|
||||
md.comp.filled-button.pressed.state-layer.opacity,
|
||||
md.comp.filled-card.container.color,
|
||||
md.comp.filled-card.container.elevation,
|
||||
md.comp.filled-card.container.shadow-color,
|
||||
md.comp.filled-card.container.shape,
|
||||
md.comp.filled-icon-button.container.color,
|
||||
md.comp.filled-icon-button.container.shape,
|
||||
md.comp.filled-icon-button.container.size,
|
||||
@@ -459,6 +463,13 @@ md.comp.outlined-button.outline.color,
|
||||
md.comp.outlined-button.outline.width,
|
||||
md.comp.outlined-button.pressed.state-layer.color,
|
||||
md.comp.outlined-button.pressed.state-layer.opacity,
|
||||
md.comp.outlined-card.container.color,
|
||||
md.comp.outlined-card.container.elevation,
|
||||
md.comp.outlined-card.container.shadow-color,
|
||||
md.comp.outlined-card.container.shape,
|
||||
md.comp.outlined-card.container.surface-tint-layer.color,
|
||||
md.comp.outlined-card.outline.color,
|
||||
md.comp.outlined-card.outline.width,
|
||||
md.comp.outlined-icon-button.container.shape,
|
||||
md.comp.outlined-icon-button.container.size,
|
||||
md.comp.outlined-icon-button.disabled.icon.color,
|
||||
|
||||
|
Reference in New Issue
Block a user