pub struct DefaultMaterialLocalizations;Expand description
US English strings for the material widgets.
See also:
GlobalMaterialLocalizations, which provides material localizations for many languages.MaterialApp.localizationsDelegates, which automatically includesDefaultMaterialLocalizations::delegateby default.
Implementations§
Source§impl DefaultMaterialLocalizations
impl DefaultMaterialLocalizations
Sourcepub const fn new() -> DefaultMaterialLocalizations
pub const fn new() -> DefaultMaterialLocalizations
Constructs an object that defines the material widgets’ localized strings for US English (only).
LocalizationsDelegate implementations typically call the static load
function, rather than constructing this class directly.
Sourcepub fn load(_locale: &Locale) -> CompleterFuture<Rc<dyn MaterialLocalizations>> ⓘ
pub fn load(_locale: &Locale) -> CompleterFuture<Rc<dyn MaterialLocalizations>> ⓘ
Creates an object that provides US English resource values for the material library widgets.
The locale parameter is ignored.
This method is typically used to create a LocalizationsDelegate.
The MaterialApp does so by default.
Sourcepub fn delegate() -> LocalizationsDelegateRef
pub fn delegate() -> LocalizationsDelegateRef
A LocalizationsDelegate that uses DefaultMaterialLocalizations::load
to create an instance of this class.
MaterialApp automatically adds this value to MaterialApp.localizationsDelegates.
Trait Implementations§
Source§impl Debug for DefaultMaterialLocalizations
impl Debug for DefaultMaterialLocalizations
Source§impl MaterialLocalizations for DefaultMaterialLocalizations
impl MaterialLocalizations for DefaultMaterialLocalizations
Source§fn format_minute(&self, time_of_day: &TimeOfDay) -> String
fn format_minute(&self, time_of_day: &TimeOfDay) -> String
minute in the given time of day according to the value
of time_of_day_format.Source§fn format_year(&self, app: &App, date: &DateTime) -> String
fn format_year(&self, app: &App, date: &DateTime) -> String
Source§fn format_compact_date(&self, app: &App, date: &DateTime) -> String
fn format_compact_date(&self, app: &App, date: &DateTime) -> String
Source§fn format_short_date(&self, app: &App, date: &DateTime) -> String
fn format_short_date(&self, app: &App, date: &DateTime) -> String
Source§fn format_medium_date(&self, app: &App, date: &DateTime) -> String
fn format_medium_date(&self, app: &App, date: &DateTime) -> String
Source§fn format_full_date(&self, app: &App, date: &DateTime) -> String
fn format_full_date(&self, app: &App, date: &DateTime) -> String
Source§fn format_month_year(&self, app: &App, date: &DateTime) -> String
fn format_month_year(&self, app: &App, date: &DateTime) -> String
date. Read moreSource§fn format_short_month_day(&self, app: &App, date: &DateTime) -> String
fn format_short_month_day(&self, app: &App, date: &DateTime) -> String
date. Read moreSource§fn narrow_weekdays(&self) -> Vec<String>
fn narrow_weekdays(&self) -> Vec<String>
Source§fn first_day_of_week_index(&self) -> i32
fn first_day_of_week_index(&self) -> i32
Source§fn date_separator(&self) -> String
fn date_separator(&self) -> String
Source§fn date_help_text(&self) -> String
fn date_help_text(&self) -> String
InputDatePickerFormField to indicate
to the user the date format being asked for.Source§fn select_year_semantics_label(&self) -> String
fn select_year_semantics_label(&self) -> String
CalendarDatePicker which is used in the data picker
dialog created with showDatePicker.Source§fn unspecified_date(&self) -> String
fn unspecified_date(&self) -> String
Source§fn unspecified_date_range(&self) -> String
fn unspecified_date_range(&self) -> String
Source§fn date_input_label(&self) -> String
fn date_input_label(&self) -> String
InputDatePickerFormField.Source§fn date_range_start_label(&self) -> String
fn date_range_start_label(&self) -> String
showDateRangePicker.Source§fn date_range_end_label(&self) -> String
fn date_range_end_label(&self) -> String
showDateRangePicker.Source§fn date_range_start_date_semantic_label(&self, formatted_date: &str) -> String
fn date_range_start_date_semantic_label(&self, formatted_date: &str) -> String
Source§fn date_range_end_date_semantic_label(&self, formatted_date: &str) -> String
fn date_range_end_date_semantic_label(&self, formatted_date: &str) -> String
Source§fn invalid_date_format_label(&self) -> String
fn invalid_date_format_label(&self) -> String
InputDatePickerFormField that is not in a valid date format.Source§fn invalid_date_range_label(&self) -> String
fn invalid_date_range_label(&self) -> String
showDateRangePicker.Source§fn date_out_of_range_label(&self) -> String
fn date_out_of_range_label(&self) -> String
showDateRangePicker.Source§fn date_picker_help_text(&self) -> String
fn date_picker_help_text(&self) -> String
showDatePicker.Source§fn date_range_picker_help_text(&self) -> String
fn date_range_picker_help_text(&self) -> String
showDateRangePicker.Source§fn time_picker_dial_help_text(&self) -> String
fn time_picker_dial_help_text(&self) -> String
showTimePicker when in TimePickerEntryMode.dial.Source§fn time_picker_input_help_text(&self) -> String
fn time_picker_input_help_text(&self) -> String
showTimePicker when in TimePickerEntryMode.input.Source§fn time_picker_hour_label(&self) -> String
fn time_picker_hour_label(&self) -> String
showTimePicker when in TimePickerEntryMode.input.Source§fn time_picker_minute_label(&self) -> String
fn time_picker_minute_label(&self) -> String
showTimePicker when in TimePickerEntryMode.input.Source§fn invalid_time_label(&self) -> String
fn invalid_time_label(&self) -> String
showTimePicker
when in TimePickerEntryMode.input.TimePickerEntryMode.dial.TimePickerEntryMode.input.Source§fn format_decimal(&self, number: i64) -> String
fn format_decimal(&self, number: i64) -> String
number as a decimal, inserting locale-appropriate thousands
separators as necessary.Source§fn format_time_of_day(
&self,
time_of_day: &TimeOfDay,
always_use_24_hour_format: bool,
) -> String
fn format_time_of_day( &self, time_of_day: &TimeOfDay, always_use_24_hour_format: bool, ) -> String
Source§fn open_app_drawer_tooltip(&self) -> String
fn open_app_drawer_tooltip(&self) -> String
AppBar menu (a.k.a. ‘hamburger’) button.BackButton’s tooltip.SearchAnchor’s search view.CloseButton’s tooltip.Chip.Source§fn next_month_tooltip(&self) -> String
fn next_month_tooltip(&self) -> String
CalendarDatePicker’s “next month” button.Source§fn previous_month_tooltip(&self) -> String
fn previous_month_tooltip(&self) -> String
CalendarDatePicker’s “previous month” button.Source§fn next_page_tooltip(&self) -> String
fn next_page_tooltip(&self) -> String
PaginatedDataTable’s “next page” button.Source§fn previous_page_tooltip(&self) -> String
fn previous_page_tooltip(&self) -> String
PaginatedDataTable’s “previous page” button.Source§fn first_page_tooltip(&self) -> String
fn first_page_tooltip(&self) -> String
PaginatedDataTable’s “first page” button.Source§fn last_page_tooltip(&self) -> String
fn last_page_tooltip(&self) -> String
PaginatedDataTable’s “last page” button.PopupMenuButton tooltip.Source§fn drawer_label(&self) -> String
fn drawer_label(&self) -> String
Source§fn dialog_label(&self) -> String
fn dialog_label(&self) -> String
Source§fn alert_dialog_label(&self) -> String
fn alert_dialog_label(&self) -> String
Source§fn search_field_label(&self) -> String
fn search_field_label(&self) -> String
Source§fn current_date_label(&self) -> String
fn current_date_label(&self) -> String
Source§fn selected_date_label(&self) -> String
fn selected_date_label(&self) -> String
showDatePicker.Source§fn scrim_label(&self) -> String
fn scrim_label(&self) -> String
BottomSheet.Source§fn bottom_sheet_label(&self) -> String
fn bottom_sheet_label(&self) -> String
Source§fn scrim_on_tap_hint(&self, modal_route_content_name: &str) -> String
fn scrim_on_tap_hint(&self, modal_route_content_name: &str) -> String
Source§fn about_list_tile_title(&self, application_name: &str) -> String
fn about_list_tile_title(&self, application_name: &str) -> String
AboutListTile.Source§fn licenses_page_title(&self) -> String
fn licenses_page_title(&self) -> String
LicensePage widget.Source§fn licenses_package_detail_text(&self, license_count: i32) -> String
fn licenses_package_detail_text(&self, license_count: i32) -> String
LicensePage widget.Source§fn page_rows_info_title(
&self,
first_row: i32,
last_row: i32,
row_count: i32,
row_count_is_approximate: bool,
) -> String
fn page_rows_info_title( &self, first_row: i32, last_row: i32, row_count: i32, row_count_is_approximate: bool, ) -> String
PaginatedDataTable’s row info footer.Source§fn rows_per_page_title(&self) -> String
fn rows_per_page_title(&self) -> String
PaginatedDataTable’s “rows per page” footer.Source§fn tab_label(&self, tab_index: i32, tab_count: i32) -> String
fn tab_label(&self, tab_index: i32, tab_count: i32) -> String
TabBar. Read moreSource§fn selected_row_count_title(&self, selected_row_count: i32) -> String
fn selected_row_count_title(&self, selected_row_count: i32) -> String
PaginatedDataTable’s selected row count header.AboutDialog button that shows the LicensePage.Source§fn ante_meridiem_abbreviation(&self) -> String
fn ante_meridiem_abbreviation(&self) -> String
Source§fn post_meridiem_abbreviation(&self) -> String
fn post_meridiem_abbreviation(&self) -> String
Source§fn time_picker_hour_mode_announcement(&self) -> String
fn time_picker_hour_mode_announcement(&self) -> String
showTimePicker is set to the hour picker mode.Source§fn time_picker_minute_mode_announcement(&self) -> String
fn time_picker_minute_mode_announcement(&self) -> String
showTimePicker is set to the minute picker mode.Source§fn modal_barrier_dismiss_label(&self) -> String
fn modal_barrier_dismiss_label(&self) -> String
Source§fn script_category(&self) -> ScriptCategory
fn script_category(&self) -> ScriptCategory
Source§fn time_of_day_format(&self, always_use_24_hour_format: bool) -> TimeOfDayFormat
fn time_of_day_format(&self, always_use_24_hour_format: bool) -> TimeOfDayFormat
Source§fn signed_in_label(&self) -> String
fn signed_in_label(&self) -> String
UserAccountsDrawerHeader widget.Source§fn hide_accounts_label(&self) -> String
fn hide_accounts_label(&self) -> String
UserAccountsDrawerHeader that
hides the list of accounts.Source§fn show_accounts_label(&self) -> String
fn show_accounts_label(&self) -> String
UserAccountsDrawerHeader that
shows the list of accounts.Source§fn reorder_item_up(&self) -> String
fn reorder_item_up(&self) -> String
Use the reorderItemUp from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
ReorderableListView to reorder an item in the
list one space up the list.Source§fn reorder_item_down(&self) -> String
fn reorder_item_down(&self) -> String
Use the reorderItemDown from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
ReorderableListView to reorder an item in the
list one space down the list.Source§fn reorder_item_left(&self) -> String
fn reorder_item_left(&self) -> String
Use the reorderItemLeft from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
ReorderableListView to reorder an item in the
list one space left in the list.Source§fn reorder_item_right(&self) -> String
fn reorder_item_right(&self) -> String
Use the reorderItemRight from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
ReorderableListView to reorder an item in the
list one space right in the list.Source§fn reorder_item_to_end(&self) -> String
fn reorder_item_to_end(&self) -> String
Use the reorderItemToEnd from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
ReorderableListView to reorder an item in the
list to the end of the list.Source§fn reorder_item_to_start(&self) -> String
fn reorder_item_to_start(&self) -> String
Use the reorderItemToStart from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
ReorderableListView to reorder an item in the
list to the start of the list.Source§fn expanded_icon_tap_hint(&self) -> String
fn expanded_icon_tap_hint(&self) -> String
ExpandIcon.Source§fn collapsed_icon_tap_hint(&self) -> String
fn collapsed_icon_tap_hint(&self) -> String
ExpandIcon.Source§fn expansion_tile_expanded_hint(&self) -> String
fn expansion_tile_expanded_hint(&self) -> String
ExpansionTile on iOS and macOS. This is appended to the collapsed_hint
hint to provide a more detailed description of the action, e.g. “Expanded
double tap to collapse”.Source§fn expansion_tile_collapsed_hint(&self) -> String
fn expansion_tile_collapsed_hint(&self) -> String
ExpansionTile on iOS and macOS. This is appended to the expanded_hint
hint to provide a more detailed description of the action, e.g. “Collapsed
double tap to expand”.Source§fn expansion_tile_expanded_tap_hint(&self) -> String
fn expansion_tile_expanded_tap_hint(&self) -> String
ExpansionTile.Source§fn expansion_tile_collapsed_tap_hint(&self) -> String
fn expansion_tile_collapsed_tap_hint(&self) -> String
ExpansionTile.Source§fn expanded_hint(&self) -> String
fn expanded_hint(&self) -> String
ExpansionTile expanded state.Source§fn collapsed_hint(&self) -> String
fn collapsed_hint(&self) -> String
ExpansionTile collapsed state.Source§fn refresh_indicator_semantic_label(&self) -> String
fn refresh_indicator_semantic_label(&self) -> String
RefreshIndicator.Source§fn remaining_text_field_character_count(&self, remaining: i32) -> String
fn remaining_text_field_character_count(&self, remaining: i32) -> String
TextField’s character counter.Source§fn keyboard_key_alt(&self) -> String
fn keyboard_key_alt(&self) -> String
LogicalKeyboardKey.alt.Source§fn keyboard_key_alt_graph(&self) -> String
fn keyboard_key_alt_graph(&self) -> String
LogicalKeyboardKey.altGraph.Source§fn keyboard_key_backspace(&self) -> String
fn keyboard_key_backspace(&self) -> String
LogicalKeyboardKey.backspace.Source§fn keyboard_key_caps_lock(&self) -> String
fn keyboard_key_caps_lock(&self) -> String
LogicalKeyboardKey.capsLock.Source§fn keyboard_key_channel_down(&self) -> String
fn keyboard_key_channel_down(&self) -> String
LogicalKeyboardKey.channelDown.Source§fn keyboard_key_channel_up(&self) -> String
fn keyboard_key_channel_up(&self) -> String
LogicalKeyboardKey.channelUp.Source§fn keyboard_key_control(&self) -> String
fn keyboard_key_control(&self) -> String
LogicalKeyboardKey.control.Source§fn keyboard_key_delete(&self) -> String
fn keyboard_key_delete(&self) -> String
LogicalKeyboardKey.delete.Source§fn keyboard_key_eject(&self) -> String
fn keyboard_key_eject(&self) -> String
LogicalKeyboardKey.eject.Source§fn keyboard_key_end(&self) -> String
fn keyboard_key_end(&self) -> String
LogicalKeyboardKey.end.Source§fn keyboard_key_escape(&self) -> String
fn keyboard_key_escape(&self) -> String
LogicalKeyboardKey.escape.Source§fn keyboard_key_fn(&self) -> String
fn keyboard_key_fn(&self) -> String
LogicalKeyboardKey.fn.Source§fn keyboard_key_home(&self) -> String
fn keyboard_key_home(&self) -> String
LogicalKeyboardKey.home.Source§fn keyboard_key_insert(&self) -> String
fn keyboard_key_insert(&self) -> String
LogicalKeyboardKey.insert.Source§fn keyboard_key_meta(&self) -> String
fn keyboard_key_meta(&self) -> String
LogicalKeyboardKey.meta.Source§fn keyboard_key_meta_mac_os(&self) -> String
fn keyboard_key_meta_mac_os(&self) -> String
LogicalKeyboardKey.meta on macOS.Source§fn keyboard_key_meta_windows(&self) -> String
fn keyboard_key_meta_windows(&self) -> String
LogicalKeyboardKey.meta on Windows.Source§fn keyboard_key_num_lock(&self) -> String
fn keyboard_key_num_lock(&self) -> String
LogicalKeyboardKey.numLock.Source§fn keyboard_key_numpad1(&self) -> String
fn keyboard_key_numpad1(&self) -> String
LogicalKeyboardKey.numpad1.Source§fn keyboard_key_numpad2(&self) -> String
fn keyboard_key_numpad2(&self) -> String
LogicalKeyboardKey.numpad2.Source§fn keyboard_key_numpad3(&self) -> String
fn keyboard_key_numpad3(&self) -> String
LogicalKeyboardKey.numpad3.Source§fn keyboard_key_numpad4(&self) -> String
fn keyboard_key_numpad4(&self) -> String
LogicalKeyboardKey.numpad4.Source§fn keyboard_key_numpad5(&self) -> String
fn keyboard_key_numpad5(&self) -> String
LogicalKeyboardKey.numpad5.Source§fn keyboard_key_numpad6(&self) -> String
fn keyboard_key_numpad6(&self) -> String
LogicalKeyboardKey.numpad6.Source§fn keyboard_key_numpad7(&self) -> String
fn keyboard_key_numpad7(&self) -> String
LogicalKeyboardKey.numpad7.Source§fn keyboard_key_numpad8(&self) -> String
fn keyboard_key_numpad8(&self) -> String
LogicalKeyboardKey.numpad8.Source§fn keyboard_key_numpad9(&self) -> String
fn keyboard_key_numpad9(&self) -> String
LogicalKeyboardKey.numpad9.Source§fn keyboard_key_numpad0(&self) -> String
fn keyboard_key_numpad0(&self) -> String
LogicalKeyboardKey.numpad0.Source§fn keyboard_key_numpad_add(&self) -> String
fn keyboard_key_numpad_add(&self) -> String
LogicalKeyboardKey.numpadAdd.Source§fn keyboard_key_numpad_comma(&self) -> String
fn keyboard_key_numpad_comma(&self) -> String
LogicalKeyboardKey.numpadComma.Source§fn keyboard_key_numpad_decimal(&self) -> String
fn keyboard_key_numpad_decimal(&self) -> String
LogicalKeyboardKey.numpadDecimal.Source§fn keyboard_key_numpad_divide(&self) -> String
fn keyboard_key_numpad_divide(&self) -> String
LogicalKeyboardKey.numpadDivide.Source§fn keyboard_key_numpad_enter(&self) -> String
fn keyboard_key_numpad_enter(&self) -> String
LogicalKeyboardKey.numpadEnter.Source§fn keyboard_key_numpad_equal(&self) -> String
fn keyboard_key_numpad_equal(&self) -> String
LogicalKeyboardKey.numpadEqual.Source§fn keyboard_key_numpad_multiply(&self) -> String
fn keyboard_key_numpad_multiply(&self) -> String
LogicalKeyboardKey.numpadMultiply.Source§fn keyboard_key_numpad_paren_left(&self) -> String
fn keyboard_key_numpad_paren_left(&self) -> String
LogicalKeyboardKey.numpadParenLeft.Source§fn keyboard_key_numpad_paren_right(&self) -> String
fn keyboard_key_numpad_paren_right(&self) -> String
LogicalKeyboardKey.numpadParenRight.Source§fn keyboard_key_numpad_subtract(&self) -> String
fn keyboard_key_numpad_subtract(&self) -> String
LogicalKeyboardKey.numpadSubtract.Source§fn keyboard_key_page_down(&self) -> String
fn keyboard_key_page_down(&self) -> String
LogicalKeyboardKey.pageDown.Source§fn keyboard_key_page_up(&self) -> String
fn keyboard_key_page_up(&self) -> String
LogicalKeyboardKey.pageUp.Source§fn keyboard_key_power(&self) -> String
fn keyboard_key_power(&self) -> String
LogicalKeyboardKey.power.Source§fn keyboard_key_power_off(&self) -> String
fn keyboard_key_power_off(&self) -> String
LogicalKeyboardKey.powerOff.Source§fn keyboard_key_print_screen(&self) -> String
fn keyboard_key_print_screen(&self) -> String
LogicalKeyboardKey.printScreen.Source§fn keyboard_key_scroll_lock(&self) -> String
fn keyboard_key_scroll_lock(&self) -> String
LogicalKeyboardKey.scrollLock.Source§fn keyboard_key_select(&self) -> String
fn keyboard_key_select(&self) -> String
LogicalKeyboardKey.select.Source§fn keyboard_key_shift(&self) -> String
fn keyboard_key_shift(&self) -> String
LogicalKeyboardKey.shift.Source§fn keyboard_key_space(&self) -> String
fn keyboard_key_space(&self) -> String
LogicalKeyboardKey.space.