PdfViewerTopBarMinimalMono
Minimal Mono topbar variant — modern, brand-neutral, with the download action visually elevated as the primary CTA.
Faithful implementation of Direction 1 from design_handoff_pdf_topbar/README.md:
64dp tall, white background, single 1dp
#F1F1F3hairline divider.Five children left → right, gap 4dp:
38×38 back chip (gray
#F4F4F6circle, Lucidearrow-left)Title block (filename
15spsemibold#0A0A0A+ UPPERCASE11spmeta line#8E8E93truncated with ellipsis)38×38 search chip (same gray, hidden when onSearch is null)
38×38 share chip (same gray, hidden when onShare is null)
38×38 print chip (same gray, hidden when showPrint is false)
38×38 download chip — primary action, filled
#111111with white icon, hidden when onDownload is null.
Recommended as the platform-agnostic default, especially on Android where it composes naturally with Material 3 surfaces. Pair it with PdfViewer in your own Scaffold(topBar = { … }).
Parameters
filename / document name surfaced as the bold first line.
how the title line behaves when it is too long for the (weighted) title block — PdfTopBarTitleOverflow.Ellipsis (default) truncates with …, PdfTopBarTitleOverflow.Marquee scrolls it horizontally. The icon chips are fixed-size and never shrink either way.
optional UPPERCASE meta line — typically "PDF · 2.4 MB" or similar context. Set to null to drop the line.
tap callback for the back chip. Ignored when showBack is false.
tap callback for the search chip. Ignored when showSearch is false.
tap callback for the share chip. Ignored when showShare is false.
tap callback for the print chip. Ignored when showPrint is false.
tap callback for the primary download chip. Ignored when showDownload is false.
tap callback for the highlight-annotation toggle. Ignored when showAnnotate is false.
hide / show the back chip independently of onBack. true by default.
hide / show the search chip. false by default because search is opt-in — wire onSearch and set this to true to surface it.
hide / show the share chip. true by default.
hide / show the print chip. false by default because printing is opt-in — wire onPrint and set this to true to surface it.
hide / show the primary download chip. true by default.
hide / show the highlight-annotation toggle chip. false by default — annotation tools are opt-in.
whether annotation mode is on; the chip renders with the filled "primary" treatment while active so the user can see the mode is engaged.
applied to the outer Row container.