Remove Cupertino branches from probe fixtures
Keep the chat and graph fixtures aligned with the app's Material-only UI by removing alternate Cupertino hosts, imports, and query-controlled rendering paths. Preserve the existing Material scenarios and document the focused probe coverage.
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:pipelines_app/features/chat/ui/transcript/chat_markdown_view.dart';
|
||||
|
||||
const _style = String.fromEnvironment(
|
||||
'CHAT_MARKDOWN_PROBE_STYLE',
|
||||
defaultValue: 'material',
|
||||
);
|
||||
|
||||
const _sample = '''
|
||||
# Heading one
|
||||
## Heading two
|
||||
@@ -36,21 +30,12 @@ Bare https://example.com/auto link.
|
||||
<b>literal html</b> and ~~strikethrough~~ stay text.
|
||||
''';
|
||||
|
||||
/// One assistant markdown sample for the Material and Cupertino dark captures.
|
||||
/// One assistant markdown sample for a Material dark capture.
|
||||
void main() {
|
||||
final content = ListView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
children: const [ChatMarkdownView(text: _sample)],
|
||||
);
|
||||
if (_style == 'cupertino') {
|
||||
runApp(
|
||||
CupertinoApp(
|
||||
theme: const CupertinoThemeData(brightness: Brightness.dark),
|
||||
home: CupertinoPageScaffold(child: SafeArea(child: content)),
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
runApp(
|
||||
MaterialApp(
|
||||
theme: ThemeData(
|
||||
|
||||
Reference in New Issue
Block a user