Add Material 3 SwitchListTile example and update existing examples (#119714)

* Add Material 3 `SwitchListTile` example and update existing examples

* Update examples with `useMaterial3: true` and update example descriptions.

* add a `ColorScheme` colour
This commit is contained in:
Taha Tesser
2023-02-06 11:02:37 +02:00
committed by GitHub
parent b8f5394a5c
commit bbca7ff693
16 changed files with 370 additions and 127 deletions

View File

@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('LinkedLabelCheckbox contains RichText and Checkbox', (WidgetTester tester) async {
await tester.pumpWidget(
const example.LabeledCheckBoxApp(),
const example.LabeledCheckboxApp(),
);
// Label text is in a RichText widget with the correct text.

View File

@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Tapping LabeledCheckbox toggles the checkbox', (WidgetTester tester) async {
await tester.pumpWidget(
const example.LabeledCheckBoxApp(),
const example.LabeledCheckboxApp(),
);
// Checkbox is initially unchecked.