flutter/dev/customer_testing
Ben Konyi 3595e7dad0
[ Widget Preview ] Add support for theme and brightness properties on Preview (#167001)
The `theme` parameter of `Preview(...)` allows for developers to provide
a callback that returns a `PreviewThemeData` instance which can contain
theming data for Material and Cupertino widgets in both light and dark
modes. The provided theme data will be injected into the widget tree and
applied to the previewed widget.

The `brightness` parameter allows for developers to specify an initial
brightness setting (e.g., light vs dark mode) for the previewed widget.
If not provided, the current system default is used.

A new button has also been added to each widget preview card that allows
for toggling between light and dark mode for individual previews.

**Demo:**


https://github.com/user-attachments/assets/f0a4a3bc-25d2-49b0-a5f6-9149eccfc1d4

Fixes https://github.com/flutter/flutter/issues/166436
Fixes https://github.com/flutter/flutter/issues/166275
Fixes https://github.com/flutter/flutter/issues/166279
Fixes https://github.com/flutter/flutter/issues/166437
2025-04-15 17:51:40 +00:00
..
lib Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
test Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
ci.bat Pin customer_testing to the SHA specified in tests.version (#162048) 2025-01-25 22:15:28 +00:00
ci.dart Pin customer_testing to the SHA specified in tests.version (#162048) 2025-01-25 22:15:28 +00:00
ci.sh Pin customer_testing to the SHA specified in tests.version (#162048) 2025-01-25 22:15:28 +00:00
pubspec.yaml [ Widget Preview ] Add support for theme and brightness properties on Preview (#167001) 2025-04-15 17:51:40 +00:00
README.md Pin customer_testing to the SHA specified in tests.version (#162048) 2025-01-25 22:15:28 +00:00
run_tests.dart Pin customer_testing to the SHA specified in tests.version (#162048) 2025-01-25 22:15:28 +00:00
tests.version Update tests.version to fix customer_testing. (#167206) 2025-04-15 16:44:19 +00:00

customer_testing

This tool checks out https://github.com/flutter/tests at the commit SHA specified in tests.version, and runs the tests registered to verify that end-user apps and libraries are working at the current tip-of-tree of Flutter.

To (locally) test a specific SHA, use ci.dart:

cd dev/customer_testing
dart ci.dart [sha]

Or, to update the SHA for our CI, edit and send a PR for tests.version.