Preview quick switch styles with the real local workspace

This commit is contained in:
2026-11-07 19:40:57 +00:00
parent 9a252b67af
commit 53a9cc78a3
7 changed files with 441 additions and 11 deletions
@@ -31,8 +31,14 @@ void main() {
);
await tester.pumpWidget(
cupertino
? CupertinoApp(home: CupertinoPageScaffold(child: child))
: MaterialApp(home: Scaffold(body: child)),
? CupertinoApp(
home: CupertinoPageScaffold(
child: SingleChildScrollView(child: child),
),
)
: MaterialApp(
home: Scaffold(body: SingleChildScrollView(child: child)),
),
);
expect(find.text('Quick switch animation'), findsOneWidget);
expect(
@@ -41,7 +47,7 @@ void main() {
);
await tester.tap(find.text('Tape'));
await tester.pumpAndSettle();
await tester.tap(find.text('Card stack').last);
await tester.tap(find.text('Card deck').last);
await tester.pumpAndSettle();
expect(controller.value, QuickSwitchAnimation.cardStack);
expect(store.saved, 'cardStack');
@@ -50,7 +56,7 @@ void main() {
findsOneWidget,
);
store.success = false;
await tester.tap(find.text('Card stack'));
await tester.tap(find.text('Card deck'));
await tester.pumpAndSettle();
await tester.tap(find.text('Swap').last);
await tester.pumpAndSettle();