ChicoWidgetsLocalizations class

WidgetsLocalizations that set textDirection from the locale.

Flutter's DefaultWidgetsLocalizations is always TextDirection.ltr, even for Arabic. ChicoApp inserts this delegate so the framework's Directionality (and selection handles, reorder labels, …) follow RTL languages without depending on Material.

Implemented types

Constructors

ChicoWidgetsLocalizations({required WidgetsLocalizations base, required TextDirection textDirection})
Wraps base and overrides only textDirection.
const

Properties

base → WidgetsLocalizations
English widget strings; only textDirection is locale-specific.
final
copyButtonLabel → String
Label for "copy" edit buttons and menu items.
no setteroverride
cutButtonLabel → String
Label for "cut" edit buttons and menu items.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
lookUpButtonLabel → String
Label for "look up" edit buttons and menu items.
no setteroverride
noResultsFound → String
The semantics label used for RawAutocomplete when the options list goes from non-empty to empty.
no setteroverride
pasteButtonLabel → String
Label for "paste" edit buttons and menu items.
no setteroverride
radioButtonUnselectedLabel → String
The accessibility hint for an unselected radio button.
no setteroverride
reorderItemDown → String
The semantics label used for SliverReorderableList to reorder an item in the list one space down the list.
no setteroverride
reorderItemLeft → String
The semantics label used for SliverReorderableList to reorder an item in the list one space left in the list.
no setteroverride
reorderItemRight → String
The semantics label used for SliverReorderableList to reorder an item in the list one space right in the list.
no setteroverride
reorderItemToEnd → String
The semantics label used for SliverReorderableList to reorder an item in the list to the end of the list.
no setteroverride
reorderItemToStart → String
The semantics label used for SliverReorderableList to reorder an item in the list to the start of the list.
no setteroverride
reorderItemUp → String
The semantics label used for SliverReorderableList to reorder an item in the list one space up the list.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchResultsFound → String
The semantics label used for RawAutocomplete when the options list goes from empty to non-empty.
no setteroverride
searchWebButtonLabel → String
Label for "search web" edit buttons and menu items.
no setteroverride
selectAllButtonLabel → String
Label for "select all" edit buttons and menu items.
no setteroverride
shareButtonLabel → String
Label for "share" edit buttons and menu items.
no setteroverride
textDirection → TextDirection
The reading direction for text in this locale.
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

Constants

delegate → const LocalizationsDelegate<WidgetsLocalizations>
Delegate installed by ChicoApp.