Skip to content

Commit 8f92516

Browse files
release: v1.1.0 — pub.dev polish, docs, tests, visual rendering
## Documentation - Translate all Vietnamese comments to English (hyper_viewer.dart, adapter.dart) - Add dartdoc to HyperRenderMode enum and HtmlAdapter class - Rewrite README: absolute image URLs for pub.dev, screenshots field, better conversion structure (Quick Start first, then features) - Update pub description to include flutter_html discovery keywords - Fix sub-package README version references (^1.0.0 → ^1.1.0) ## pub.dev readiness - Bump all sub-package versions to 1.1.0 (html, markdown, highlight, clipboard, devtools) - Add screenshots: field to pubspec.yaml with 6 demo GIFs - Update vector_math: ^2.1.4 → ^2.2.0 - Fix pubspec_publish_ready.yaml (versions, description, screenshots) - Update prepare_publish.sh: auto-remove publish_to: none, validate all required files and screenshot assets - Fix pubspec comments: ^1.2.0 → ^1.1.0 ## Tests - Replace 3 TODO stub tests with real assertions (DeltaAdapter, MarkdownAdapter, HyperViewer.delta/markdown constructors) - Add URL assertion to link tap tests in render_hyper_box_test and layout_logic_test - Add virtualized mode + auto-large-content integration tests using tester.runAsync() for async parse path - Update golden images to match current rendering output ## Demo - Add CJK languages demo (cjk_languages_demo.dart) - Add devtools_options.yaml to example
1 parent 1d2072d commit 8f92516

86 files changed

Lines changed: 3314 additions & 1668 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 256 additions & 528 deletions
Large diffs are not rendered by default.

example/devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

example/example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/// onLinkTap: (url) => print(url),
1414
/// )
1515
/// ```
16-
library hyper_render_example;
16+
library;
1717

1818
import 'package:flutter/material.dart';
1919
import 'package:hyper_render/hyper_render.dart';

example/lib/accessibility_demo.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ MyWidget() // Not as good</code></pre>
204204
),
205205
Text(
206206
'Enable TalkBack/VoiceOver to test accessibility',
207-
style: TextStyle(color: Colors.white70, fontSize: 12),
207+
style: TextStyle(color: Colors.white, fontSize: 12),
208208
),
209209
],
210210
),

example/lib/base_url_demo.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class _BaseUrlDemoState extends State<BaseUrlDemo> {
118118
Text(
119119
'Resolve relative URLs against a base, and intercept link taps '
120120
'for navigation, mailto, tel, and external URLs.',
121-
style: TextStyle(fontSize: 13, color: Colors.white70),
121+
style: TextStyle(fontSize: 13, color: Colors.white),
122122
),
123123
],
124124
),

example/lib/cjk_languages_demo.dart

Lines changed: 403 additions & 0 deletions
Large diffs are not rendered by default.

example/lib/css_properties_demo.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class CssPropertiesDemo extends StatelessWidget {
431431
),
432432
Text(
433433
'Comprehensive CSS support showcase',
434-
style: TextStyle(fontSize: 13, color: Colors.white70),
434+
style: TextStyle(fontSize: 13, color: Colors.white),
435435
),
436436
],
437437
),
@@ -441,7 +441,7 @@ class CssPropertiesDemo extends StatelessWidget {
441441
SizedBox(height: 12),
442442
Text(
443443
'✅ text-shadow • text-overflow • border-style • direction (RTL/LTR)',
444-
style: TextStyle(fontSize: 12, color: Colors.white70),
444+
style: TextStyle(fontSize: 12, color: Colors.white),
445445
),
446446
],
447447
),

example/lib/demo_colors.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ class DemoColors {
2121

2222
/// Accent - Content formats (Teal/Cyan family)
2323
/// Used for: Quill Delta, Markdown, Code Blocks, Image Handling
24-
static const accent = Color(0xFF26A69A); // Teal 400
24+
static const accent = Color(0xFF00695C); // Teal 800 — contrast 6.3:1 on white
2525

2626
/// Warning - Media & Performance (Amber/Orange family)
2727
/// Used for: Video, Zoom, Stress Test
28-
static const warning = Color(0xFFFF9800); // Orange 500
28+
static const warning = Color(0xFFBF360C); // Deep Orange 900 — contrast 5.6:1 on white
2929

3030
/// Success - Quality & Accessibility (Green family)
3131
/// Used for: Accessibility, Library Comparison, FWFH Tests
32-
static const success = Color(0xFF66BB6A); // Green 400
32+
static const success = Color(0xFF2E7D32); // Green 800 — contrast 5.0:1 on white
3333

3434
/// Error - Security & Critical (Red family)
3535
/// Used for: Security Demo, Critical warnings
36-
static const error = Color(0xFFEF5350); // Red 400
36+
static const error = Color(0xFFC62828); // Red 900 — contrast 5.6:1 on white
3737

3838
// ============================================
3939
// NEUTRAL PALETTE
4040
// ============================================
4141

4242
/// Neutral for less important items
43-
static const neutral = Color(0xFF78909C); // Blue Grey 400
43+
static const neutral = Color(0xFF546E7A); // Blue Grey 600 — contrast 5.1:1 on white
4444

4545
// ============================================
4646
// COLOR SEMANTICS

0 commit comments

Comments
 (0)