FilamentStrings class
The package's own user-facing strings.
Deliberately not an i18n package: depending on one would force every host to initialise it a particular way and share an asset path. A host passes its own translated values here in one place instead. Nearly all text on screen comes from the server already translated, so this list stays short.
Constructors
- FilamentStrings({String retry = 'Retry', String empty = 'Nothing here yet', String dashboardEmpty = 'Nothing to show yet.', String searchHint = 'Search', String sortTitle = 'Sort by', String filters = 'Filters', String clearFilters = 'Clear all', String anyOption = 'Any', String updateRequired = 'Please update the app', String loadFailed = 'Could not load', String fieldRequired = 'This field is required', String fieldEmail = 'Enter a valid email address', String fieldUrl = 'Enter a valid URL', String fieldPattern = 'This value is not in the expected format', String fieldConfirmed = 'The confirmation does not match', String fieldColor = 'Enter a valid color in the expected format', String fieldMin(num) = _defaultMin, String fieldMax(num) = _defaultMax, String timeFieldRange(String? min, String? max) = _defaultTimeRange, String save = 'Save', String saveFailed = 'Could not save', String saved = 'Saved', String deleteConfirmTitle = 'Delete this record?', String deleteConfirmBody = 'This cannot be undone.', String deleteConfirm = 'Delete', String cancel = 'Cancel', String create = 'Create', String edit = 'Edit', String actions = 'Actions', String actionFailed = 'Could not run that action.', String actionConfirm = 'Confirm', String chooseFile = 'Choose file', String uploading = 'Uploading…', String uploadFailed = 'Could not upload the file', String fileFieldReadOnly = 'This file cannot be changed.', String addItem = 'Add item', String removeItem = 'Remove', String repeaterReadOnly = 'These items cannot be changed.', String tagHint = 'Add a tag', String seeAll = 'See all', String relationEmpty = 'Nothing here yet', String relationFailed = 'Could not load', String keepTypingToNarrowList = 'Keep typing to narrow the list', String reorderRecords = 'Reorder', String doneReordering = 'Done', String reorderFailed = 'Could not save the new order', String cancelReordering = 'Cancel reordering', String noRecordSelected = 'Select a record', String dashboardTitle = 'Dashboard', String logOut = 'Log out'})
-
const
- FilamentStrings.arabic()
-
A fully Arabic-translated instance — Modern Standard Arabic, matching
Flutter's own Material localisations where it has a canonical word
(Cancel = إلغاء, Delete = حذف, Save = حفظ, Retry = إعادة المحاولة,
Search = بحث).
factory
Properties
- actionConfirm → String
-
The confirm button when an action requires confirmation but declared
no submit label of its own.
final
- actionFailed → String
-
Shown when an action's run fails and the server sent no message.
final
- actions → String
-
Tooltip on the record screen's overflow menu, which holds the actions
the server published for this record. Icon-only, so it needs an
accessible name for the same reason
editandcreatedo.final - addItem → String
-
The control that appends a row to a repeater.
final
- anyOption → String
-
The blank choice a single-value filter's picker shows ahead of its real
options — Filament's own web placeholder row. Choosing it maps to
ResourceListProvider.setFilter(name, null), an explicit clear, never an omitted parameter — see that method's doc for why the distinction matters.final - cancel → String
-
final
- cancelReordering → String
-
Tooltip on the AppBar's exit-without-saving control, shown only while
reordering —
ResourceListProvider.exitReorderMode()'s trigger. Icon-only, so it needs an accessible name for the same reason reorderRecords does.final -
Shown in place of a chart widget when the host passed no
chartBuilder— seeDashboardScreen's class doc for why the package draws no charts of its own.final - chooseFile → String
-
The control that opens
filePickerand starts an upload, and the same label used to replace an already-uploaded file.final - clearFilters → String
-
The filter sheet's action that resets every published filter to its
explicit "any" value —
ResourceListProvider.clearFilters()'s trigger.final - create → String
-
Tooltips for the create and edit affordances (
ResourceListScreen,ResourceViewScreen) — icon-only controls need one for the same reason the delete affordance does: no accessible name otherwise.final - dashboardEmpty → String
-
Shown by
DashboardScreenwhen a load succeeds with zero widgets.final - dashboardTitle → String
-
PanelShell's home AppBar title and sidebar entry for the dashboard.final - deleteConfirm → String
-
final
- deleteConfirmBody → String
-
final
- deleteConfirmTitle → String
-
final
- doneReordering → String
-
The AppBar action that commits the current drag order and closes
reorder mode —
ResourceListProvider.saveReorder()'s trigger.final - edit → String
-
final
- empty → String
-
final
- fieldColor → String
-
Shown by a
colorfield when its text does not match the format the panel declared (hex/hsl/rgb/rgba) — a malformed value blocks submission rather than being silently coerced into something the panel never declared. SeeColorComponent.isValid, the single check both this message and the field's live swatch are driven from.final - fieldConfirmed → String
-
final
- fieldEmail → String
-
final
- fieldMax → String Function(num)
-
final
- fieldMin → String Function(num)
-
Parameterised rather than a
'%s'template: Arabic and English put the bound in different places in the sentence, so a fixed template can't carry both.final - fieldPattern → String
-
final
- fieldRequired → String
-
final
- fieldUrl → String
-
final
- fileFieldReadOnly → String
-
Shown in place of a file field's choose control when the server
marked it
readOnly— distinct from filePickerUnavailable, which is about a host capability gap, not a server rule. Shown even when the host did supply a picker: the server's word wins.final -
Shown in place of a file field's choose control when
ResourceFormScreenwas given nofilePicker— never a control the host cannot actually drive, the same principle as chartUnavailable.final - filters → String
-
Tooltip on
ResourceListScreen's filter action (P24), shown only whenresource.filters.isNotEmpty— see that screen's class doc for the same gating on the sort action.final - hashCode → int
-
The hash code for this object.
no setterinherited
- keepTypingToNarrowList → String
-
The footnote on a remote select's search sheet when the server said
the page it returned is not the whole list — says the list was cut
short rather than implying it ended, so a user who cannot find their
record keeps typing instead of concluding it does not exist.
final
- loadFailed → String
-
final
- logOut → String
-
PanelShell's profile-menu item, shown only when the host wiredonLogout.final - noRecordSelected → String
-
PanelShell's detail-pane placeholder at the expanded form factor, shown while no master row is selected (P23).final - relationEmpty → String
-
Shown by
RelationSectionWidgetwhen the relation loaded successfully but has zero rows. Distinct from the section being absent entirely — see that widget's class doc for why the two must not look the same.final - relationFailed → String
-
Shown by
RelationSectionWidgetwhen its load fails, in place of the spinner — never left spinning forever. See the class doc for the incident this guards against.final - removeItem → String
-
The control that removes one row from a repeater.
final
- reorderFailed → String
-
Shown when
saveReorder()'s POST fails and the server sent no message — the drag order is rolled back to the last server-confirmed one when this is shown, same as every other write's failure in this package.final - reorderRecords → String
-
Tooltip on
ResourceListScreen's reorder toggle (P18) — icon-only, so it needs an accessible name for the same reason create/edit do. Shown only whenresource.reorder != null— see that screen's class doc.final - repeaterReadOnly → String
-
Shown on a repeater the server marked
readOnly— same story as fileFieldReadOnly: the server's rule, not a host capability gap, so it is shown even when the host's own gates would otherwise allow editing.final - retry → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- save → String
-
final
- saved → String
-
Toast after a successful save, shown on the screen the form returns to.
final
- saveFailed → String
-
final
- searchHint → String
-
final
- seeAll → String
-
The affordance on a
RelationSectionWidgetthat opens the full, paginated relation — shown only when there is more to see than the section's first page already rendered.final - sortTitle → String
-
final
- tagHint → String
-
The hint on a
tagsfield's text input. A tag commits on submit only —splitKeysis not on the wire — so this has to say what to do, not merely name the field.final - timeFieldRange → String Function(String? min, String? max)
-
The helper line on a bounded
timefield that declared no helper text of its own, e.g. "Between 9:00 AM and 5:00 PM".final - updateRequired → String
-
final
- uploadFailed → String
-
The field error shown when an upload fails with no server message.
final
- uploading → String
-
Shown on a file field while its upload is in flight.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
forLocale(
String? locale) → FilamentStrings - The one resolver the common case needs: a locale in, strings out.