DocumentViewerStrings class
The text the package's widgets show: messages, labels, tooltips and screen-reader descriptions. English by default.
To translate or reword it, subclass and override what you need, then put it above the viewers with DocumentViewerStringsScope:
class GermanStrings extends DocumentViewerStrings {
const GermanStrings();
@override
String get noMatches => 'Keine Treffer';
}
DocumentViewerStringsScope(strings: const GermanStrings(), child: app)
Constructors
- DocumentViewerStrings()
-
The English strings.
const
Properties
- cellDetails → String
-
A right-click menu entry that opens a cell's details.
no setter
- clearSelection → String
-
Tooltip: clear the selection.
no setter
- closeSearch → String
-
Tooltip: close the search.
no setter
- columnWidth → String
-
Tooltip of the status bar's column menu.
no setter
- copy → String
-
Button: copy.
no setter
- copyAddress → String
-
Tooltip: copy a selection's address ("B2:D5").
no setter
- copyFormula → String
-
Tooltip: copy a cell's formula.
no setter
- couldNotCopy → String
-
Shown when the clipboard refused the copy.
no setter
- done → String
-
Button: leave touch range selection and scroll again.
no setter
- emptySheet → String
-
Shown instead of a sheet with no cells.
no setter
- fitColumn → String
-
Menu entry: fit the column to its longest text.
no setter
- formula → String
-
Label above a cell's formula.
no setter
- formulaWithoutResult → String
-
A formula cell saved without its result.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- markdownPreviewTruncated → String
-
Shown where MarkdownView stops rendering a very large file.
no setter
- next → String
-
Tooltip: on one page, slide, row or line.
no setter
- nextMatch → String
-
Tooltip: the next match.
no setter
- noMatches → String
-
A search with no matches.
no setter
- noSearchableText → String
-
A search in a PDF with no text to search (a scanned document).
no setter
- notes → String
-
Heading above a document's footnotes and endnotes.
no setter
- openLink → String
-
Button: open a cell's link.
no setter
- previous → String
-
Tooltip: back one page, slide, row or line.
no setter
- previousMatch → String
-
Tooltip: the previous match.
no setter
- rangeTooLargeToSummarize → String
-
Shown instead of a range's totals when it is too big to add up quickly.
no setter
- resetColumn → String
-
Menu entry: go back to the width the file gave the column.
no setter
- resizeColumn → String
-
The grip that resizes a selected column (spoken).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search → String
-
Tooltip, and the search field's hint.
no setter
- searching → String
-
While a background search (PDF) has found nothing yet.
no setter
- selectAll → String
-
Label of the grid's top-left corner, which selects every cell.
no setter
- selectionEndHandle → String
-
Spoken label of the handle at the selection's bottom-right corner.
no setter
- selectionStartHandle → String
-
Spoken label of the handle at the selection's top-left corner.
no setter
- tooLargeToCopy → String
-
Shown when a selection is too big to copy.
no setter
- zoomIn → String
-
Tooltip: zoom in.
no setter
- zoomOut → String
-
Tooltip: zoom out.
no setter
Methods
-
average(
String average) → String - A selection's average.
-
cell(
String address) → String - The title of a cell's details: "Cell B3".
-
cellDescription(
String address, {required String value, bool formula = false, bool link = false, bool note = false, bool selected = false}) → String -
What a screen reader says for a cell: "B2, value 40, formula, has
note, link, selected".
valueis empty for a blank cell. -
column(
String letters) → String - A column, by its letters: "Column C".
-
copied(
String what) → String -
Confirmation after copying
what("B2:D5", "Row 3", "Formula"). -
copySelection(
String what) → String -
Tooltip: copy a selected row or column, named by
what("Row 3"). -
count(
int count) → String - A selection's count of values.
-
dimensions(
int rows, int columns) → String -
A range's size:
rowsrows bycolumnscolumns. -
emptySlide(
int number) → String - Shown on a slide with nothing to show.
-
loadError(
DocumentLoadError error) → String - Why a document couldn't be opened.
-
location(
DocumentLocation location) → String - "Page 3 of 12", "Row 40 of 900", "42%".
-
matchOf(
int current, int count) → String - Which match is current: "3 of 12".
-
max(
String max) → String - A selection's largest number.
-
min(
String min) → String - A selection's smallest number.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
note(
{String? author}) → String -
Label above a cell's note;
authorwhen the note has one. -
noteMark(
String label) → String - Screen-reader label for a note mark.
-
numbers(
int count) → String - How many of a selection's cells are numbers, shown when some aren't.
-
page(
int number) → String -
Screen-reader label for page
number(from 1). -
row(
int number) → String - A row, by its number: "Row 12".
-
searchStatus(
DocumentSearchState state) → String -
The search status line for
state: empty when there's no search. -
selected(
String what) → String - Spoken when the selection changes: "Selected B2:D5".
-
sum(
String sum) → String - A selection's sum.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → DocumentViewerStrings - The strings from the nearest DocumentViewerStringsScope, or English.