13a5e1dee0
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.
49 lines
1.1 KiB
Dart
49 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:pipelines_app/features/chat/ui/transcript/chat_markdown_view.dart';
|
|
|
|
const _sample = '''
|
|
# Heading one
|
|
## Heading two
|
|
### Heading three
|
|
#### Heading four
|
|
##### Heading five
|
|
###### Heading six
|
|
A paragraph with **bold**, *italic*, `inline code`, and snake_case_name staying plain.
|
|
> quoted line one
|
|
> quoted line two
|
|
- bullet one
|
|
- bullet two
|
|
1. first item
|
|
2. second item
|
|
| Name | Value |
|
|
| --- | --- |
|
|
| alpha | 1 |
|
|
| beta | 2 |
|
|
```dart
|
|
const answer = 42;
|
|
keep spaces
|
|
```
|
|
---
|
|
[Open docs](https://example.com/docs) and [unsafe](javascript:alert) stay safe.
|
|
Bare https://example.com/auto link.
|
|
<b>literal html</b> and ~~strikethrough~~ stay text.
|
|
''';
|
|
|
|
/// One assistant markdown sample for a Material dark capture.
|
|
void main() {
|
|
final content = ListView(
|
|
padding: const EdgeInsets.all(16),
|
|
children: const [ChatMarkdownView(text: _sample)],
|
|
);
|
|
runApp(
|
|
MaterialApp(
|
|
theme: ThemeData(
|
|
brightness: Brightness.dark,
|
|
platform: TargetPlatform.android,
|
|
),
|
|
home: Scaffold(body: SafeArea(child: content)),
|
|
),
|
|
);
|
|
}
|