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:
Qun Cheng
2023-11-01 16:29:49 -07:00
committed by GitHub
parent b47e4c4acb
commit 4a0f261b4e
11 changed files with 364 additions and 112 deletions

View File

@@ -261,7 +261,7 @@ class SampleChecker {
}
}
// These tests are known to be missing. They should all eventually be
// These tests are known to be missing. They should all eventually be
// implemented, but until they are we allow them, so that we can catch any new
// examples that are added without tests.
//
@@ -282,7 +282,6 @@ final Set<String> _knownMissingTests = <String>{
'examples/api/test/material/text_field/text_field.1_test.dart',
'examples/api/test/material/button_style/button_style.0_test.dart',
'examples/api/test/material/range_slider/range_slider.0_test.dart',
'examples/api/test/material/card/card.2_test.dart',
'examples/api/test/material/card/card.0_test.dart',
'examples/api/test/material/selection_container/selection_container_disabled.0_test.dart',
'examples/api/test/material/selection_container/selection_container.0_test.dart',