Skip to main content

qvp_flutter 0.11.0 copy "qvp_flutter: ^0.11.0" to clipboard
qvp_flutter: ^0.11.0 copied to clipboard

Flutter wrapper for the QVP vector mushaf engine (dart:ffi over libqvp_ffi).

Unreleased #

0.11.0 #

Added #

  • Flutter: QvpPassage.styledDrawList(pages), and draws: and pageColors: on paintPassage, to fill a passage in its pages' colours, a letter coloured on its own included. QvpPassageSpec.omitAyahMarks and QvpPassage.ayahMark(pages, surah, ayah) lay an ayah out with no medallion and give its medallion alone, on both backends. QvpPassageDraw compares by value.
  • QvpPageView.onSwipe gives a sideways swipe in pages: +1 the next page, -1 the page before it. A magnified page pans instead, and a touch with a second finger never turns the page.

Fixed #

  • The iOS, macOS, Windows and Linux builds of an app that takes qvp_flutter from pub.dev find the engine. The package carries the Windows (x64) and Linux (x64, arm64) libraries. On iOS and macOS, Swift Package Manager or CocoaPods downloads the XCFramework from the GitHub release and checks its checksum. Through 0.10.0 the package had the engine for Android and the web only (#211).

0.10.0 #

Added #

  • Flutter: QvpPage.attachLetters(bytes), hasLetters, letterCount, letter, letters, letterMembers, pathLetter, letterAtOffset, findLetters, styleLetters, hitTestLetter, hitTestLetterView and layoutDrawRevision(), on both backends. Sel.letter, Sel.letterMark, Sel.letterMarkNamed and Sel.wordChars select letters. New types: QvpLetter, QvpLetterMember, QvpLetterHit, QvpLetterQuery and QvpLetterPart. QvpPageView keys its draw list on the draw revision, and its base ink on the draw list.
  • With a letter layer and no letter rule, every view draws what it drew before. A page with no layer makes no new engine call per frame in any wrapper.
  • Every wrapper gives a letter the same names. A letter's text is its character, and codePoint is the same as a number. A member and a letter hit give the mark as its id, mark, and its name, markName. A letter's marks are its members that are not body, in the engine's order. Every letter also gives nMembers and nMarks. The web letter gives its box as box, and the other wrappers as x0, y0, x1 and y1. A query's text takes one character, or '' for any letter. A string of more than one character is an error in the wrapper's usual form. After an attach that succeeds, each array that a host got from the page before it is stale: geometry, colours, built paths and each array sized from the path count. In React Native, the letter hit tests take DEFAULTS.TAP_DISTANCE as the default maxDistance, as its hitTest does.
  • test/shared/letter_cases.dart replays conformance/scenarios/letters.json on both backends.

Changed #

  • Flutter: the QvpBackend interface has 13 new members for the letter layer, and a new type, QvpPageGeometry. This is a source-breaking change for a class outside the package that implements QvpBackend: it must add the members. An app that uses the package's own backends needs no change.
  • An attach of a letter layer makes stale what the host read before it. The pointers that qvp_geometry and qvp_colors returned are invalid after qvp_attach_letters returns 0, and n_paths of qvp_page_info and qvp_geometry, the length of qvp_colors and qvp_layout_path_groups grow by the pieces. On a page with a layer, qvp_layout_draw_list and qvp_layout_draw_revision apply pending rule changes before they answer, as qvp_colors does. On a page with no layer they do not.
  • The geometry of a page is now read again after an attach in Kotlin, Swift and Dart: nPaths, ops, pts and table of QvpPage are var with a private setter in Kotlin, public private(set) var in Swift, and getters in Dart. Code that reads them is unchanged. An array that an app copied from them before an attach does not hold the pieces.

Removed #

Fixed #

  • The block and blur boxes of a memorisation mask have one height in a printed line: the top and the bottom of the tallest ink of the line's words.
  • Flutter: the styled pass of QvpPageView draws each styled entry of the draw list, in its order and under its own placement. It drew each styled path once, at its first placement, so a styled path that a reflowed layout draws twice, such as a sajdah line over two rows, lost its second copy. The base ink and the styled pass now draw each entry of the draw list once between them, and a hidden path not at all. Now every view draws only what the draw list holds.

0.9.1 #

Fixed #

  • A pinch or a step on a page dressed in a border lands on the new layout's resting scale. The printed page rests shrunk so its border fits across the width, and a reflowed page rests at scale 1 because its rows are narrowed instead. The zoom control kept the view's scale across the relayout, so a pinch in drew the reflowed page narrower than the screen and a pinch out cut the printed page's border off (page 584: scale 0.708 carried into a layout that rests at 1, and back). The view now keeps its size against the width the page spans. An undressed page rests at scale 1 in every layout and is unchanged.

0.9.0 #

Added #

  • QvpEngine.viewSwipe(dx, dy, [vx, vy]) and QvpEngine.swipePages(dx, dy, [vx, vy]) read a released drag, and QvpPage.viewAnchor(view, word, nx, ny, toX, toY, viewportW, viewportH) holds a point of a word on the screen across a new layout. The generated bindings declared all three, but no Dart call reached them (#165). Both backends bind them.
  • QvpPage.ayahMarksView(), hitAreasView([gapBias]) and wordBandsView(words, height:, padX:, padY:): the viewport-px twins of ayahMarks, hitAreas and wordBands, in both backends. Each answers through the current layout, so an app that draws its own overlay on a reflowed page reads where each word or mark is drawn (#82).
  • qvp_layout_ink_band picks the band of a laid-out page that a host keeps drawn: the whole page when it fits, otherwise two screens around the reader. The band's top moves in steps, so a pan inside one step redraws nothing. The band is in layout px, ready for qvp_layout_draw_list. Its two limits are in viewport px: max_height (0 takes the new QVP_DEFAULT_MAX_INK_HEIGHT, 4096), which no band passes, and max_pixels, a pixel budget (0 is no limit), which shrinks the band from two screens to no less than one. With no screen (no scale, no viewport height, or a non-finite scale, height or offset) the band is the whole page, however tall. A dressed page's dress overflow, and half the border's stroke past it, counts against both limits, rounded up to whole viewport px plus one for the antialiased edge. Its band is the dressed box when that fits. When neither the dressed box nor the bare page fits, it is the bare page's band. When only the bare page fits, it steps on whole viewport px, and under a screen taller than the ceiling it is the ceiling tall, holding the bare page whole and as much border above it as fits. That is a deliberate choice: the views used to cut the page's bottom rows there, and now the page's ink stays whole and the top of the border is clipped as needed. iOS rounds that top to whole points, so up to 2 more device rows of the border can be clipped there. With no screen it is the whole dressed box (#182). Bound as layoutInkBand in JavaScript, Kotlin, Dart and Swift. React Native calls it through the Kotlin view. conformance/scenarios/ink-band.json holds the engine's answers for a bare and a dressed page, and the web, Kotlin, Dart and Swift tests replay them (#134).
  • Swift Package Manager support on iOS and macOS (#153). ios/qvp_flutter/Package.swift and macos/qvp_flutter/Package.swift link QvpEngine.xcframework as a binary target, and the podspecs stay for apps that build with CocoaPods. Flutter no longer warns that the plugin does not support Swift Package Manager.
  • test/qvp_web_test.dart runs the cases of test/shared/api_cases.dart on the web backend in Chrome. test/qvp_flutter_test.dart runs the same cases on the dart:ffi backend.

Changed #

  • The Android QvpPageView, the Flutter QvpPageView and the web CanvasRenderer ask the engine for their band of ink. Each had its own copy of the arithmetic, and the copies did not agree (#134):
    • Android drew a printed page as a band. It now draws any page whole when the page fits the ceiling and the ink budget, as it already did for a reflowed page. Its band no longer passes the ceiling on a screen taller than 4096 px. The ink budget now limits the band as well as the whole page, down to one screen and never below.
    • Flutter measured the 4096 ceiling in layout px. It now measures it in viewport px, so a magnified page bands once it is taller than 4096 px on the screen. At a view scale of 1 nothing changes.
    • The web band now stays under the tallest canvas a browser makes, and under the ink budget down to one screen.
  • The dress overflow is no longer added to the band by the views (#182). On Android the ornament layer was the band plus the overflow, cut at the 4096-row ceiling and the ink budget, so the bottom of a border could go missing. It is now the engine's band, the same rows as the base ink, so on any screen under the ceiling the border on it is drawn whole. On a screen taller than the ceiling the layer is the ceiling tall, from the border's top. The web CanvasRenderer's ornament layer is the engine's band too. On a screen whose device pixel ratio is not a whole number, such as 1.5, the web border could be drawn a device pixel off the ink, since its layer was placed by rounding of its own. It now sits on the ink's pixels. On both, the base ink's bitmap is now the dressed band, a few rows taller than the bare band on a page that fits. A page whose dressed box is just over a limit its bare page fits under now bands, so a pan can redraw it; that costs time, not pixels. Flutter and React Native need no change.
  • QvpDressInfo.overflow and its twins in every wrapper are documented in layout px, which is what the engine returns. The docs said viewport px (#182).
  • flutter analyze fails on a public item with no doc block: analysis_options.yaml turns on public_member_api_docs. Every public type, field and call in types.dart, page.dart, engine.dart, atlas.dart, ornaments.dart, passage.dart and page_view.dart has a block that gives its units, its range and what an empty or null result means. lib/src/bindings.dart and the three backend files in lib/src/backend/ are exempt, because qvp.h documents the calls they marshal (#135).
  • The iOS and macOS sources moved from Classes/ to qvp_flutter/Sources/qvp_flutter/, the layout Swift Package Manager needs. QvpEngine.xcframework moved from ios/ and macos/ to ios/qvp_flutter/ and macos/qvp_flutter/, where the podspec and Package.swift both read it. scripts/build-engine-ios.sh copies it there. Run it again after you pull.
  • layoutPrintedHeight on a page dressed in a border answers the height of the whole page, border included: the dressed box fitted to the viewport width, as dressView at scale 0 fits it. That is the height a host that scrolls the page gives its canvas, so a host can plan a box for a bordered page before it sizes the canvas. With no padding the height is in proportion to the width. An undressed page answers contentH as before.
  • Fill-height on a page dressed in a border fills the viewport with the border included: dressView(0, viewportW).height is viewportH. Before, the text filled the viewport and the border reached past it above and below. layoutLineSpacingToFill answers the same leading.
  • A printed layout of a dressed page narrows cropLeft and cropRight where a medallion reaches past them, so the crop never cuts into a medallion. A medallion stays centred on its printed ring. On page 50, four font markers reached about 1 unit past a crop measured from the words.
  • dress and undress lay a printed page out again from its own spec, as they already did for a reflowed page, because the crop and the fill now depend on the dress.

Fixed #

  • A band of ink with less than 2 px of slack, from an ink budget of about one screen or a screen within 2 px of max_height, now follows the reader. Before, its top moved in steps of 1 px, more than half its slack, and the band could end up to 2 px short of the screen's edge (#134).
  • QvpKind and QvpDecorationKind name every code in qvp.h: QvpKind.ornament, pageNumber and runningHead (5 to 7), and QvpDecorationKind.pageNumber, runningHead and other (5, 6 and 255). Before, QvpPage.pathKind and a decoration's kind could return a value that no constant named.
  • Doc fixes in types.dart. QvpSurahHeader, QvpAyahMark, QvpHitArea, QvpBox and QvpLayout name every call that fills them, the _view twins and qvp_layout_current included. QvpBox.line and QvpHitArea.line say which calls carry a row on a reflowed page. QvpLayout.fitScale shrinks to fit both width and height, not to height alone. The default QvpZoom is at zoom 1, not all zero. QvpDefaults names its ratios apart from its page-unit lengths.
  • On web, a 'surah:ayah:word' target such as '2:255:3' named word 0 of the page. targetWords, highlight, mask, text, cropSvg and the other target calls took the first word. The web backend now sends the word key to qvp.js, which finds the word on the page.
  • On iOS, macOS, Android, Windows and Linux, a word key that is not on the page, such as '2:1:1' on page 42, named word 0. It now names no word, as on web: targetWords is empty and text is ''. A shared test case holds both backends to this.
  • The docs of the layout's fit (fit_scale, fit_x, fit_y) say what a reflowed page does. On a reflowed page fit_scale is 1 and the host scrolls the content. fit_x centres it across the viewport, and fit_y puts the top of the box at the top of the viewport. Before, qvp.h, the Rust docs, docs/API.md and the Kotlin, Swift, Dart and React Native docs said that the fit shrinks every page into the viewport and centres it. qvp.h, the Rust docs, docs/API.md, Kotlin and Swift also said that a printed page shrinks to the viewport height. It shrinks to fit both the width and the height. The wrapper docs now also say that on a dressed page the fit shows the content plus the dress overflow, and that fit_x, fit_y place the content's own origin. The docs of the dress overflow in Kotlin, Swift and Dart told a host to fit the overflow itself. The engine's fit holds it already. The iOS resetView() docs said that the view fits the content height.
  • A page dressed without a border no longer grows its dressed box to the whole printed page. The box is the laid-out page, so a crop is kept. Before, dressView at scale 0 shrank a cropped page to show the cut margins, by about 3.5% on page 50. A reflowed page dressed without a border is no longer pushed off to the left: on page 50 at zoom 1.8, fitX was −170 px.
  • The XCFramework's macOS slice holds arm64 and x86_64. A Flutter macOS release build is universal, and it failed to link against the arm64-only slice.

0.8.0 #

Added #

  • QVP_DEFAULT_REFLOW_RELAX, QVP_DEFAULT_REFLOW_MAX_STRETCH and QVP_DEFAULT_SELECTION_PAD_X in qvp.h, mirrored in every wrapper's defaults table (QvpDefaults in Kotlin, Swift and Dart, DEFAULTS in JavaScript and React Native). The page views pass the selection pad from the table and the reflow specs take their defaults from it, so no wrapper copies the numbers by hand. scripts/check-parity.py compares 29 defaults where it compared 26.
  • Reflow can keep the print's line breaks with breaks: 'printed' in QvpReflowSpec. Each line stays whole while its ink grows to fill the page width. reflowMaxZoom measures the widest row in this mode, and larger zooms clamp to it.
  • Platforms: iOS, macOS, Windows, Linux and web, alongside Android.
    • iOS and macOS link QvpEngine.xcframework through a podspec and resolve symbols with DynamicLibrary.process(). scripts/build-engine-ios.sh copies the framework into both.
    • Windows and Linux bundle qvp_ffi.dll and libqvp_ffi.so through CMake, and fail the build when neither the plugin directory nor the Cargo build holds one.
    • Web runs the engine as WebAssembly over dart:js_interop. Call await QvpEngine.initWeb() before the first engine call.
  • scripts/sync-flutter-web-engine.sh refreshes the two web assets the package ships. scripts/check-parity.py fails when the qvp.js copy drifts from web/qvp.js.
  • QvpPage.batch(fn) notifies listeners once however many mutations fn makes.
  • QvpPage.path(i) builds one path on demand and keeps it. QvpPage.buildPaths() returns the whole list as before.

Changed #

  • Breaking. QvpPageView.onWordTap hands the host the QvpWordInfo where it passed the word's index, and onDecorationTap carries the QvpHit beside the decoration. Android and iOS pass the word and the hit already, so host code reads one shape on all three. QvpWordTapCallback and QvpDecorationTapCallback name the two shapes. The index is word.index, and a host with no use for the hit takes a second parameter and ignores it (issue #139).
  • Flutter: package:ffigen generates lib/src/bindings.dart from qvp.h (dart run tool/ffigen.dart). Before, the file was written by hand. scripts/check-flutter-bindings.sh fails when the file and the header differ. The Flutter workflow runs it, and scripts/check.sh parity runs it when Flutter and libclang are installed. scripts/check-parity.py skips the generated file, so a symbol counts as bound in Flutter only when the package's own code names it. docs/API-PARITY.md lists as gaps the 14 symbols that the old file bound and no backend called. The binding object behind QvpNativeBackend.b follows the C names everywhere: hide, highlight, moveHighlight, restyleHighlight, removeHighlight, clearHighlights and atlasSurahs are now styleHide, highlightAdd, highlightMove, highlightRestyle, highlightRemove, highlightClear and atlasSurahCount.
  • The web engine in the package, assets/wasm/qvp_ffi.wasm and assets/js/qvp.js, is built from the release tag, so it matches the native libraries and the crates of the same version. The repository no longer tracks the two files. The pubspec declares their directories, so a native build of a git: or path: dependency runs without them. A web build from such a dependency builds them first (see the README).
  • QvpPageView caches the base ink and the ornament layer as ui.Picture recordings in layout units rather than rasters at the current transform, so a pan or a pinch replays the picture instead of redrawing the page. Keys carry the engine layout's offsets and the surahFrames flag, so a relayout redraws. The ornament layer is keyed on QvpDressInfo.revision and held per page, which is what a repaint of a dress depends on.
  • QvpPage.ayahMarks() holds its answer until the next mutation.
  • Shipped binaries build with the cargo profile dist. The Windows and Linux CMake files look under target/dist/ first, then target/release/. scripts/build-engine-windows.ps1 and scripts/sync-flutter-web-engine.sh build with it.
  • Split engine.dart into types.dart, page.dart, atlas.dart, ornaments.dart, passage.dart and a backend interface. QvpEngine now holds a QvpBackend, so the Dart API no longer names dart:ffi types and the same code compiles for web.
  • The native backend marshals input through a bump allocator over one scratch buffer rather than an allocation per call. Nested marshalling takes a slice of its own, so text() can pass two separators safely.
  • The package is dart format clean, and the Flutter workflow checks the formatting before it analyses.
  • Android and Flutter: a page view frame where nothing changed asks the engine for the clock and nothing else. The views keep the styled paths, the highlight and mask boxes with their paths, and the dress readout until a call on the page, a new layout or the clock changes them. Small value keys replace the string keys of the base ink, the ornament layer and the draw list. On Android such a frame allocates nothing: on page 042 in the API 35 emulator it allocated 19 objects, or 1,071 with a highlight and a mask (docs/MEASURED.md). The numbers the views draw do not change.
  • The example's tool-written files are committed, so a clone stays clean after one build.
  • The plugin and its example pin ndkVersion to the repository's NDK, so Gradle no longer downloads Flutter's default NDK beside it.

Removed #

  • Breaking. kMinZoom and kMaxZoom are gone, because the engine applies the pinch limits. Use QvpDefaults.maxZoom and QvpPageView.maxZoom. The floor is the fitted page. QvpPageView.minScale and maxScale, which did nothing, are gone. QvpViewController.zoomBy takes min and max in place of minScale and maxScale.
  • Breaking. QvpEngine.resolveLibrary, QvpEngine.scratchBytes and QvpEngine.str are gone. All three named dart:ffi types or the native scratch, which cannot sit on a platform-neutral class. QvpNativeBackend holds them now. Pass a library to QvpEngine(library) or a path to QvpEngine.open(path:) as before.

Fixed #

  • The exact hit tests fill their hit with the core's conversion, as the gap-aware hit tests do. They are qvp_hit_test_exact and qvp_hit_test_exact_view, and hitTestExact and hitTestExactView in every wrapper. A hit on a decoration reports the line of the decoration's first path. It reported QVP_NONE: -1 in the wrappers, and Int.MAX_VALUE in Kotlin and in React Native on Android. A hit on the box of a word or a decoration, outside its ink, reports is_exact 0. It reported 1. conformance/scenarios/hit.json holds one point of each kind, and the web, Swift, Dart and Android tests replay it. The C ABI is unchanged.
  • Dart: rgba and QvpColor.withAlpha clamp a NaN alpha to 0, where they threw.
  • Every wrapper handles a freed object, a second free and a large array result the same way (docs/API.md, conventions). A call on a freed page, atlas, ornament set or passage throws an error with the object's name: a StateError in Dart in every build mode, where a debug assert stood before, a fatal error in Swift and a rejection in React Native. The Flutter native backend no longer passes a freed handle's null pointer to the engine. A second free, close or dispose does nothing, Flutter's QvpPage.dispose included, and the Kotlin handle is atomic, so two threads that close the same object free it once. Every array getter grows its buffer to the total the engine reports, where the Android bridge, the web wrapper and the Flutter backend stopped at fixed caps such as 64 line bands, 1,024 highlight handles and a 256 KB scratch.
  • Every pan, zoom and view computation in QvpPageView goes through the engine: a tap is inverted with QvpPage.viewToLayout, a magnifying pinch is placed by QvpEngine.viewZoomAbout with the fitted page as the floor and maxZoom as the ceiling, a one-finger drag by QvpEngine.viewPan (the view did not drag before), and the view a drag or a pinch produces is held with dressClamp. A pinch follows the rule in docs/API.md, and two fingers drag the page. QvpViewController.zoomBy, panBy and toView call the engine. zoomBy stops at the fitted page, and a controller that a host hands to a new view keeps working. zoomSpec keeps the host's reflow knobs on the printed page. The tests replay conformance/scenarios/zoom.json.
  • A call on a disposed QvpEngine throws StateError('QvpEngine was disposed') on a native build, where a page, atlas or name call after engine.dispose() reached freed scratch memory. Freeing a page, atlas, passage or ornament set still works afterwards.
  • After a zoom step lays the page out again, QvpPageView draws the highlight bands and the dress overflow of the new layout. It kept those of the old layout until the next call on the page.
  • QvpPageViewStats.basePaths counts the paths a replayed picture draws, not only the paths of a frame that recorded one.
  • The example builds from a fresh clone. The root .gitignore ignored every PNG, so git never tracked the launcher icons and launch images that the Android manifest and the iOS and macOS asset catalogs name. The rule now covers the repository root only, and the Flutter template's icons are tracked. The example gains the template's web/ folder, and the Flutter workflow builds the example for Android and web, so a missing file fails CI.
  • flutter analyze no longer warns on a fresh clone that the example's assets/pages/ directory is missing. The directory holds a tracked README.md, and .gitignore keeps that file while it ignores the page data. The rule pages/ now matches only the root pages/.
  • A highlight band no longer freezes part way through a transition, and a removed band no longer stays on the page. The engine's highlight boxes depend on the clock, so the band cache clears on every frame rather than on a revision change.
  • Styled paint composites with srcOver. With src, a styled colour part way through a fade wrote its alpha over the paper rect in the same layer and opened a translucent hole.
  • A styled path the layout leaves out of the draw list is skipped. The fallback read pathLine(), which mixed a printed line number into a list of placements and put the glyph somewhere else on a reflowed page.

0.7.0 #

  • Dress: QvpEngine.loadOrnaments and QvpOrnaments (list, find, ofKind, styles), and QvpPage.dress, undress, dressInfo, dressGeometry and dressRevision. QvpPageView paints the ornament layer behind the ink and fits the border. The example has a dress panel.
  • Passages: QvpPassage.load and QvpPassage.basmalah, layout, and paintPassage to draw a layout; the plugin replays conformance/scenarios/passage.json (issue #102).
  • QvpPageView.maxZoom, peekScale and setZoomMode, as on iOS and Android. The magnify pinch is clamped by the engine (QvpEngine.viewZoomAbout).
  • zoomSpec keeps the host's reflow knobs on the printed page, with zoom 0, so the first pinch off it reflows with the host's fill rather than the engine's defaults.
  • Engine: a passage cut to a row with no room for one word, the ellipsis and the medallion shrinks the scale rather than placing them outside the layout.
  • QvpPassageWord.wordX0 to wordY1: the box of the word alone, without its signs. The word that closes an ayah leaves its medallion out, so an underline under it stops at the word.

0.6.1 #

  • Engine 0.6.1: a passage that runs from page 2 into page 3 draws every word at one size in QvpKit and web/lite-passage.mjs; this package binds passages next (issue #102). Nothing changes here.

0.6.0 #

  • Engine 0.6.0: justified passages and a surah's basmalah as a passage reach QvpKit first; this package binds passages next (issue #102). Nothing changes here.

0.5.0 #

  • Under justified, a row that cannot reach both margins is centred instead of starting at the right margin: the last row of a block, a single word, or a row whose gaps would have to stretch past max_stretch. Hung off the right margin, it read as a ragged column.
  • The reflow knobs of QvpLayoutSpec are read on a printed page too (reflow_zoom 0): they are what the zoom control reflows the page with. A C host that zeroes the spec and pinches now reflows ragged (fill 0), greedy (breaks 0) and with printed gaps (gaps 0); 255, 255 and 1 ask for the engine's defaults, which every wrapper already writes.
  • On a reflowed row, a medallion is centred between the word it closes and the next one with the signs each carries, such as the quarter star (۞) that opens the next ayah. Measured on the letters alone, it sat against the star with the space on its other side.
  • A pinch keeps the host's fill, breaks and gaps from the first step. The C layer dropped the reflow knobs while reflow_zoom was 0, so the layout the zoom control made inside a pinch always took the engine's defaults.

0.3.0 #

  • Engine 0.3.0: the reader's zoom control (zoomPinch, zoomToStep, and the mode, spec, carried, at-step and is-zoomed calls), a page reflowed onto rows of the screen's own width when the reader zooms in, layoutDrawList, layoutPrintedHeight, sidewaysDrag and swipePages, and the surahFrames and bannerZoom layout knobs.
  • surahHeaders and surahHeadersView: the box a surah frame fills and the title ink inside it, for a host that draws its own frame.
  • Fixed: QvpPage.zoomSpec carries bannerZoom through.

0.2.2 #

  • The package includes the Android engine and is available from pub.dev.

0.2.0 #

  • ABI 0.2: the header and every wrapper follow the naming standard (hit tests, rectangles, verbs, discriminators, full words, layout, one-byte booleans, the engine/format version split). No alias is kept; the old → new table is in the root CHANGELOG.md and docs/API-PARITY.md.

0.1.1 #

  • Line spacing only ever opens up. The printed pitch is the floor: lineSpacing below 1, a negative lineGap, or a fillHeight that would need to tighten now lay the page out exactly as printed, so the lines can never collapse into one another. The text width was never adjustable and stays fitted to the viewport.

0.1.0 #

  • First release: page loading, hit-testing, layout, styles, highlights, selection, masks, search and crop over the Rust engine.
0
likes
150
points
883
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter wrapper for the QVP vector mushaf engine (dart:ffi over libqvp_ffi).

Homepage
Repository (GitHub)
View/report issues
Contributing

License

unknown (license)

Dependencies

ffi, flutter, flutter_web_plugins

More

Packages that depend on qvp_flutter

Packages that implement qvp_flutter