mirror of
https://github.com/flutter/samples.git
synced 2025-11-12 15:58:32 +00:00
Flutter 3.24 update, Add CarouselView examples to demo 3 (#2377)
This PR is to include `CarouselView` to M3 demo app. https://github.com/user-attachments/assets/7db76c06-aa7e-4461-9baa-51fd5c4e6b38 ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. --------- Co-authored-by: Eric Windmill <ewindmill@google.com>
This commit is contained in:
@@ -10,7 +10,7 @@ import 'package:material_3_demo/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Default main page shows all M3 components', (tester) async {
|
||||
widgetSetup(tester, 800, windowHeight: 7000);
|
||||
widgetSetup(tester, 800, windowHeight: 7500);
|
||||
await tester.pumpWidget(const App());
|
||||
|
||||
// Elements on the app bar
|
||||
@@ -67,6 +67,9 @@ void main() {
|
||||
expect(find.widgetWithText(Cards, 'Filled'), findsOneWidget);
|
||||
expect(find.widgetWithText(Cards, 'Outlined'), findsOneWidget);
|
||||
|
||||
// Carousels
|
||||
expect(find.byType(CarouselView), findsNWidgets(2));
|
||||
|
||||
// Dialogs
|
||||
expect(find.widgetWithText(TextButton, 'Show dialog'), findsOneWidget);
|
||||
expect(find.widgetWithText(TextButton, 'Show full-screen dialog'),
|
||||
|
||||
Reference in New Issue
Block a user