PackageTrack
Sign in Get early access

docx_file_viewer

A Flutter package for rendering DOCX files with native widgets. View, zoom, search, and interact with Word documents.

1.0.3 4.7K downloads/mo #3935 most downloaded on pub.dev alihassan143/htmltopdfwidgets

What this package is like to depend on

Last release 28 days ago

26 Jul 2026

Release timing varies

gaps range from 2 months to 1.1 years

Some releases are documented

notes for 3 of 11 stable releases

Nothing withdrawn

no release was ever pulled

2 years old

11 releases · first in 2024

4 releases in the last 12 months

see the full history below

Release timeline

11 releases · Nov 2024 to Jul 2026
2025 2026
Release Pre-release

Releases

latest 11
  1. 1.0.3 26 Jul 2026
    Release notes
    • Bump version and add CHANGELOG entry for the twips/points pixel-scale
      fix, PUA bullet fallback, and dotted/dashed border fix.
    • Loosen the docx_creator dependency from an exact pin to ^1.3.0 (flagged
      by flutter pub publish --dry-run as too tight for consumers).
    • Add docx_file_viewer to the Pub.dev publish workflow's package matrix,
      now that trusted publishing is configured for it on pub.dev.
    Open source →
    Release notes

    🐛 Bug Fixes

    • Image/shape sizing was too smallDocxImage/DocxInlineImage/DocxShapeBlock dimensions are stored in points, but were passed straight through to Flutter's width/height as if already logical pixels; they're now correctly scaled via DocxUnits.pointsToPixels (points × 96/72), matching how the same document renders in Word
    • DocxUnits.twipsToPixels divided by 20 (twips → points) and stopped there instead of continuing on to pixels; fixed to twips → points → pixels (twips / 20 * 1.333)
    • List bullets stored as Word's Symbol/Wingdings Private-Use-Area glyphs (e.g. U+F0B7) rendered as a "tofu" box on platforms without that exact font installed; these now fall back to a portable Unicode bullet instead
    • Dotted/dashed paragraph and table borders were invisible — Flutter's BorderSide only supports solid or none, and they were previously mapped to BorderStyle.none; they're now drawn solid instead of silently disappearing (the closer of the two approximations)

    🔧 Improvements

    • Bumped docx_creator dependency to 1.3.0

    🧪 Tests

    • Added test/rendering_accuracy_fixes_test.dart — covers the twips/points → pixel scaling fix (image and shape sizing) and the Private-Use-Area bullet fallback
    Open source →
  2. 1.0.2 16 May 2026
    Release notes

    style: refactor formatting and line wrapping across widgets and tests

    Open source →
    Release notes

    ✨ New Features

    • First-line indent (w:firstLine) — positive indentFirstLine now prepends a zero-height WidgetSpan spacer so the first line is indented relative to the paragraph body
    • Hanging indent (w:hanging) — negative indentFirstLine values reduce the container left padding to approximate hanging-indent layout
    • Line-rule variantslineRule values 'exact' and 'atLeast' are now handled separately from 'auto': exact clamps the scale to 0.5–10, atLeast floors it at 1.0

    🐛 Bug Fixes

    • Multi-column vertical merge placeholder — a cell spanning N columns across multiple rows previously produced N separate thin placeholders in continuation rows; it now correctly emits one wide placeholder whose width covers all spanned columns

    🧪 Tests

    • Added test/parser_test.dart — 5 unit tests covering the cascade rule, table grid matrix, crash immunity, first-line indent spacer, and line-rule variants
    • Added test/widget_test.dart — 4 widget tests covering row height ConstrainedBox, multi-column vMerge placeholder child count, search highlight character ranges, and floating image Row layout

    🔧 Improvements

    • Extracted _resolveLineHeightScale() helper in ParagraphBuilder to centralise line-height logic
    • TableBuilder._buildRow() now tracks a parallel skipColSpans array alongside skipCounts to correctly group multi-column vertical merges
    • Added .claude/ and graphify-out/ to .gitignore
    Open source →
  3. 1.0.1 07 Jan 2026
    Release notes

    🎉 Stable Release

    This release marks the stable 1.0.0 version with a complete architecture overhaul and significant feature improvements.

    ✨ New Features

    • Paged View Mode - Documents can now be rendered in distinct page blocks (print layout style) in addition to continuous scrolling
    • Content-Aware Pagination - Smart page breaks based on content height estimation
    • Embedded Font Loading - Full support for OOXML font embedding with deobfuscation
    • Theme Color Resolution - Proper handling of theme colors with tint/shade modifiers
    • Drop Cap Support - Rich drop cap rendering with proper text wrapping
    • Floating Image Layout - Left/right floating images with text wrap
    • Headers & Footers - First page, odd/even page header/footer support
    • Footnotes & Endnotes - Interactive footnote/endnote references with tap-to-view dialog
    • Table Conditional Formatting - Support for first row, last row, first column, last column, and banded styles
    • Checkbox Support - Interactive checkbox rendering in documents
    • Shape Rendering - Basic shape support (rectangles, text boxes)

    🔧 Improvements

    • Search Navigation - Auto-scroll to search matches with dynamic alignment
    • Style Resolution - Full style inheritance from named styles, paragraph, and run properties
    • Color Resolution - Theme color, tint, and shade calculation
    • Border Rendering - Complete border support for paragraphs and tables
    • Performance - Optimized widget generation for large documents

    🏗️ Architecture

    • Migrated to modular builder pattern (ParagraphBuilder, TableBuilder, ListBuilder, etc.)
    • Introduced DocxWidgetGenerator as the central rendering engine
    • Added DocxViewTheme for comprehensive theming support
    • Added DocxSearchController for programmatic search control
    • Added BlockIndexCounter for search indexing

    Open source →
  4. 1.0.0 04 Jan 2026

    Nothing published for this version

  5. 0.0.7 04 Dec 2024

    Nothing published for this version

  6. 0.0.6 03 Dec 2024

    Nothing published for this version

  7. 0.0.5 01 Dec 2024

    Nothing published for this version

  8. 0.0.4 29 Nov 2024

    Nothing published for this version

  9. 0.0.3 29 Nov 2024

    Nothing published for this version

  10. 0.0.2 28 Nov 2024

    Nothing published for this version

  11. 0.0.1 27 Nov 2024

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive