Commit e61dc6a
committed
fix: resolve 8 bugs + bump version to 1.2.2
Android build (#5):
- Add subprojects compileSdk=35 override in example/android/build.gradle.kts
to fix irondash_engine_context vs androidx.fragment:1.7.1 mismatch
SVG invisible with sanitize:true (html_sanitizer.dart):
- Add atomic SVG sanitization path (_sanitizeSvgElement, _sanitizeSvgAttributes)
preserving structural elements while stripping scripts/dangerous attrs
HyperRenderConfig equality (hyper_render_config.dart):
- Add operator== and hashCode to prevent identity-compare re-layouts on
every frame when _effectiveConfig merges keyframes into a new object
selectable toggle ignored after build (hyper_viewer.dart):
- Create/dispose VirtualizedSelectionController in didUpdateWidget when
selectable prop changes
Deep-link tap silently blocked (hyper_viewer.dart):
- _safeOnLinkTap now checks both allowedCustomSchemes AND
renderConfig.extraLinkSchemes
CSS change did not invalidate section cache (hyper_viewer.dart):
- Reset _sectionHashes in didUpdateWidget when customCss changes
Markdown/Delta single-section in virtualized/paged mode (hyper_viewer.dart):
- Add _splitIntoSections() helper; sync fallback now chunks at block boundaries
renderConfig change only partially detected (hyper_viewer.dart):
- didUpdateWidget uses full renderConfig != instead of only virtualizationChunkSize
CSS float class names not detected (html_adapter.dart):
- _containsFloatChild now recognises Bootstrap/Tailwind float class patterns
Misc:
- Fix unused element _containsPositionAbsoluteOrFixed in html_heuristics.dart
- Add .pubignore entries for archive/, coverage/, .metadata, pubspec_dev.yaml
- dart format all changed files1 parent 3815fd5 commit e61dc6a
14 files changed
Lines changed: 753 additions & 428 deletions
File tree
- example/lib/reader_app
- lib/src
- parser/html
- utils
- widgets
- packages/hyper_render_core
- lib/src/core
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
| |||
0 commit comments