Remove Cupertino chat transcript branches

Keep the existing Material transcript path while preserving public Cupertino parameters for callers. Narrow transcript tests to the Material-only behavior and remove Cupertino-only fixtures.
This commit is contained in:
2026-11-11 11:46:13 +00:00
parent 1c2bb8733a
commit fbe1928f59
52 changed files with 1524 additions and 2947 deletions
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/features/chat/ui/transcript/native_disclosure.dart';
@@ -10,13 +9,6 @@ Widget _material(WidgetBuilder body) => MaterialApp(
),
);
Widget _cupertino(WidgetBuilder body) => CupertinoApp(
theme: const CupertinoThemeData(brightness: Brightness.dark),
home: CupertinoPageScaffold(
child: NativeDisclosure(label: 'Body', childBuilder: body),
),
);
void main() {
testWidgets('closed Material disclosure never builds its body', (
tester,
@@ -37,28 +29,4 @@ void main() {
expect(builds, greaterThan(0));
expect(find.text('body'), findsOneWidget);
});
testWidgets('closed Cupertino disclosure never builds its body', (
tester,
) async {
var builds = 0;
await tester.pumpWidget(
_cupertino((context) {
builds++;
return const Text('body');
}),
);
await tester.pumpAndSettle();
expect(builds, 0);
expect(find.text('body'), findsNothing);
await tester.tap(find.text('Body'));
await tester.pumpAndSettle();
expect(builds, 1);
expect(find.text('body'), findsOneWidget);
await tester.tap(find.text('Body'));
await tester.pumpAndSettle();
expect(find.text('body'), findsNothing);
});
}