Skip to main content

MaterialLocalizations

Trait MaterialLocalizations 

Source
pub trait MaterialLocalizations: 'static {
Show 157 methods // Required methods fn open_app_drawer_tooltip(&self) -> String; fn back_button_tooltip(&self) -> String; fn clear_button_tooltip(&self) -> String; fn close_button_tooltip(&self) -> String; fn delete_button_tooltip(&self) -> String; fn more_button_tooltip(&self) -> String; fn next_month_tooltip(&self) -> String; fn previous_month_tooltip(&self) -> String; fn first_page_tooltip(&self) -> String; fn last_page_tooltip(&self) -> String; fn next_page_tooltip(&self) -> String; fn previous_page_tooltip(&self) -> String; fn show_menu_tooltip(&self) -> String; fn about_list_tile_title(&self, application_name: &str) -> String; fn licenses_page_title(&self) -> String; fn licenses_package_detail_text(&self, license_count: i32) -> String; fn page_rows_info_title( &self, first_row: i32, last_row: i32, row_count: i32, row_count_is_approximate: bool, ) -> String; fn rows_per_page_title(&self) -> String; fn tab_label(&self, tab_index: i32, tab_count: i32) -> String; fn selected_row_count_title(&self, selected_row_count: i32) -> String; fn cancel_button_label(&self) -> String; fn close_button_label(&self) -> String; fn continue_button_label(&self) -> String; fn copy_button_label(&self) -> String; fn cut_button_label(&self) -> String; fn scan_text_button_label(&self) -> String; fn ok_button_label(&self) -> String; fn paste_button_label(&self) -> String; fn select_all_button_label(&self) -> String; fn look_up_button_label(&self) -> String; fn search_web_button_label(&self) -> String; fn share_button_label(&self) -> String; fn view_licenses_button_label(&self) -> String; fn ante_meridiem_abbreviation(&self) -> String; fn post_meridiem_abbreviation(&self) -> String; fn time_picker_hour_mode_announcement(&self) -> String; fn time_picker_minute_mode_announcement(&self) -> String; fn modal_barrier_dismiss_label(&self) -> String; fn menu_dismiss_label(&self) -> String; fn drawer_label(&self) -> String; fn popup_menu_label(&self) -> String; fn menu_bar_menu_label(&self) -> String; fn dialog_label(&self) -> String; fn alert_dialog_label(&self) -> String; fn search_field_label(&self) -> String; fn current_date_label(&self) -> String; fn selected_date_label(&self) -> String; fn scrim_label(&self) -> String; fn bottom_sheet_label(&self) -> String; fn scrim_on_tap_hint(&self, modal_route_content_name: &str) -> String; fn time_of_day_format( &self, always_use_24_hour_format: bool, ) -> TimeOfDayFormat; fn script_category(&self) -> ScriptCategory; fn format_decimal(&self, number: i64) -> String; fn format_hour( &self, time_of_day: &TimeOfDay, always_use_24_hour_format: bool, ) -> String; fn format_minute(&self, time_of_day: &TimeOfDay) -> String; fn format_time_of_day( &self, time_of_day: &TimeOfDay, always_use_24_hour_format: bool, ) -> String; fn format_year(&self, app: &App, date: &DateTime) -> String; fn format_compact_date(&self, app: &App, date: &DateTime) -> String; fn format_short_date(&self, app: &App, date: &DateTime) -> String; fn format_medium_date(&self, app: &App, date: &DateTime) -> String; fn format_full_date(&self, app: &App, date: &DateTime) -> String; fn format_month_year(&self, app: &App, date: &DateTime) -> String; fn format_short_month_day(&self, app: &App, date: &DateTime) -> String; fn parse_compact_date( &self, app: &App, input_string: Option<&str>, ) -> Option<DateTime>; fn narrow_weekdays(&self) -> Vec<String>; fn first_day_of_week_index(&self) -> i32; fn date_separator(&self) -> String; fn date_help_text(&self) -> String; fn select_year_semantics_label(&self) -> String; fn unspecified_date(&self) -> String; fn unspecified_date_range(&self) -> String; fn date_input_label(&self) -> String; fn date_range_start_label(&self) -> String; fn date_range_end_label(&self) -> String; fn date_range_start_date_semantic_label( &self, formatted_date: &str, ) -> String; fn date_range_end_date_semantic_label(&self, formatted_date: &str) -> String; fn invalid_date_format_label(&self) -> String; fn invalid_date_range_label(&self) -> String; fn date_out_of_range_label(&self) -> String; fn save_button_label(&self) -> String; fn date_picker_help_text(&self) -> String; fn date_range_picker_help_text(&self) -> String; fn calendar_mode_button_label(&self) -> String; fn input_date_mode_button_label(&self) -> String; fn time_picker_dial_help_text(&self) -> String; fn time_picker_input_help_text(&self) -> String; fn time_picker_hour_label(&self) -> String; fn time_picker_minute_label(&self) -> String; fn invalid_time_label(&self) -> String; fn dial_mode_button_label(&self) -> String; fn input_time_mode_button_label(&self) -> String; fn signed_in_label(&self) -> String; fn hide_accounts_label(&self) -> String; fn show_accounts_label(&self) -> String; fn reorder_item_to_start(&self) -> String; fn reorder_item_to_end(&self) -> String; fn reorder_item_up(&self) -> String; fn reorder_item_down(&self) -> String; fn reorder_item_left(&self) -> String; fn reorder_item_right(&self) -> String; fn remaining_text_field_character_count(&self, remaining: i32) -> String; fn refresh_indicator_semantic_label(&self) -> String; fn keyboard_key_alt(&self) -> String; fn keyboard_key_alt_graph(&self) -> String; fn keyboard_key_backspace(&self) -> String; fn keyboard_key_caps_lock(&self) -> String; fn keyboard_key_channel_down(&self) -> String; fn keyboard_key_channel_up(&self) -> String; fn keyboard_key_control(&self) -> String; fn keyboard_key_delete(&self) -> String; fn keyboard_key_eject(&self) -> String; fn keyboard_key_end(&self) -> String; fn keyboard_key_escape(&self) -> String; fn keyboard_key_fn(&self) -> String; fn keyboard_key_home(&self) -> String; fn keyboard_key_insert(&self) -> String; fn keyboard_key_meta(&self) -> String; fn keyboard_key_meta_mac_os(&self) -> String; fn keyboard_key_meta_windows(&self) -> String; fn keyboard_key_num_lock(&self) -> String; fn keyboard_key_numpad1(&self) -> String; fn keyboard_key_numpad2(&self) -> String; fn keyboard_key_numpad3(&self) -> String; fn keyboard_key_numpad4(&self) -> String; fn keyboard_key_numpad5(&self) -> String; fn keyboard_key_numpad6(&self) -> String; fn keyboard_key_numpad7(&self) -> String; fn keyboard_key_numpad8(&self) -> String; fn keyboard_key_numpad9(&self) -> String; fn keyboard_key_numpad0(&self) -> String; fn keyboard_key_numpad_add(&self) -> String; fn keyboard_key_numpad_comma(&self) -> String; fn keyboard_key_numpad_decimal(&self) -> String; fn keyboard_key_numpad_divide(&self) -> String; fn keyboard_key_numpad_enter(&self) -> String; fn keyboard_key_numpad_equal(&self) -> String; fn keyboard_key_numpad_multiply(&self) -> String; fn keyboard_key_numpad_paren_left(&self) -> String; fn keyboard_key_numpad_paren_right(&self) -> String; fn keyboard_key_numpad_subtract(&self) -> String; fn keyboard_key_page_down(&self) -> String; fn keyboard_key_page_up(&self) -> String; fn keyboard_key_power(&self) -> String; fn keyboard_key_power_off(&self) -> String; fn keyboard_key_print_screen(&self) -> String; fn keyboard_key_scroll_lock(&self) -> String; fn keyboard_key_select(&self) -> String; fn keyboard_key_shift(&self) -> String; fn keyboard_key_space(&self) -> String; // Provided methods fn expanded_icon_tap_hint(&self) -> String { ... } fn collapsed_icon_tap_hint(&self) -> String { ... } fn expansion_tile_expanded_hint(&self) -> String { ... } fn expansion_tile_collapsed_hint(&self) -> String { ... } fn expansion_tile_expanded_tap_hint(&self) -> String { ... } fn expansion_tile_collapsed_tap_hint(&self) -> String { ... } fn expanded_hint(&self) -> String { ... } fn collapsed_hint(&self) -> String { ... }
}
Expand description

Defines the localized resource values used by the Material widgets.

See also:

  • DefaultMaterialLocalizations, the default, English-only, implementation of this interface.
  • GlobalMaterialLocalizations, which provides material localizations for many languages.

Required Methods§

Source

fn open_app_drawer_tooltip(&self) -> String

The tooltip for the leading AppBar menu (a.k.a. ‘hamburger’) button.

Source

fn back_button_tooltip(&self) -> String

The BackButton’s tooltip.

Source

fn clear_button_tooltip(&self) -> String

The tooltip for the clear button to clear text on SearchAnchor’s search view.

Source

fn close_button_tooltip(&self) -> String

The CloseButton’s tooltip.

Source

fn delete_button_tooltip(&self) -> String

The tooltip for the delete button on a Chip.

Source

fn more_button_tooltip(&self) -> String

The tooltip for the more button on an overflowing text selection menu.

Source

fn next_month_tooltip(&self) -> String

The tooltip for the CalendarDatePicker’s “next month” button.

Source

fn previous_month_tooltip(&self) -> String

The tooltip for the CalendarDatePicker’s “previous month” button.

Source

fn first_page_tooltip(&self) -> String

The tooltip for the PaginatedDataTable’s “first page” button.

Source

fn last_page_tooltip(&self) -> String

The tooltip for the PaginatedDataTable’s “last page” button.

Source

fn next_page_tooltip(&self) -> String

The tooltip for the PaginatedDataTable’s “next page” button.

Source

fn previous_page_tooltip(&self) -> String

The tooltip for the PaginatedDataTable’s “previous page” button.

Source

fn show_menu_tooltip(&self) -> String

The default PopupMenuButton tooltip.

Source

fn about_list_tile_title(&self, application_name: &str) -> String

The default title for AboutListTile.

Source

fn licenses_page_title(&self) -> String

Title for the LicensePage widget.

Source

fn licenses_package_detail_text(&self, license_count: i32) -> String

Subtitle for a package in the LicensePage widget.

Source

fn page_rows_info_title( &self, first_row: i32, last_row: i32, row_count: i32, row_count_is_approximate: bool, ) -> String

Title for the PaginatedDataTable’s row info footer.

Source

fn rows_per_page_title(&self) -> String

Title for the PaginatedDataTable’s “rows per page” footer.

Source

fn tab_label(&self, tab_index: i32, tab_count: i32) -> String

The accessibility label used on a tab in a TabBar.

This message describes the index of the selected tab and how many tabs there are, e.g. ‘Tab 1 of 2’ in United States English.

tab_index and tab_count must be greater than or equal to one.

Source

fn selected_row_count_title(&self, selected_row_count: i32) -> String

Title for the PaginatedDataTable’s selected row count header.

Source

fn cancel_button_label(&self) -> String

Label for “cancel” buttons and menu items.

Source

fn close_button_label(&self) -> String

Label for “close” buttons and menu items.

Source

fn continue_button_label(&self) -> String

Label for “continue” buttons and menu items.

Source

fn copy_button_label(&self) -> String

Label for “copy” edit buttons and menu items.

Source

fn cut_button_label(&self) -> String

Label for “cut” edit buttons and menu items.

Source

fn scan_text_button_label(&self) -> String

Label for “scan text” OCR edit buttons and menu items.

Source

fn ok_button_label(&self) -> String

Label for OK buttons and menu items.

Source

fn paste_button_label(&self) -> String

Label for “paste” edit buttons and menu items.

Source

fn select_all_button_label(&self) -> String

Label for “select all” edit buttons and menu items.

Source

fn look_up_button_label(&self) -> String

Label for “look up” edit buttons and menu items.

Source

fn search_web_button_label(&self) -> String

Label for “search web” edit buttons and menu items.

Source

fn share_button_label(&self) -> String

Label for “share” edit buttons and menu items.

Source

fn view_licenses_button_label(&self) -> String

Label for the AboutDialog button that shows the LicensePage.

Source

fn ante_meridiem_abbreviation(&self) -> String

The abbreviation for ante meridiem (before noon) shown in the time picker.

Source

fn post_meridiem_abbreviation(&self) -> String

The abbreviation for post meridiem (after noon) shown in the time picker.

Source

fn time_picker_hour_mode_announcement(&self) -> String

The text-to-speech announcement made when a time picker invoked using showTimePicker is set to the hour picker mode.

Source

fn time_picker_minute_mode_announcement(&self) -> String

The text-to-speech announcement made when a time picker invoked using showTimePicker is set to the minute picker mode.

Source

fn modal_barrier_dismiss_label(&self) -> String

Label read out by accessibility tools (TalkBack or VoiceOver) for a modal barrier to indicate that a tap dismisses the barrier.

A modal barrier can for example be found behind an alert or popup to block user interaction with elements behind it.

Source

fn menu_dismiss_label(&self) -> String

Label read out by accessibility tools (TalkBack or VoiceOver) for a context menu to indicate that a tap dismisses the context menu.

Source

fn drawer_label(&self) -> String

Label read out by accessibility tools (TalkBack or VoiceOver) when a drawer widget is opened.

Source

fn popup_menu_label(&self) -> String

Label read out by accessibility tools (TalkBack or VoiceOver) when a popup menu widget is opened.

Source

fn menu_bar_menu_label(&self) -> String

Label read out by accessibility tools (TalkBack or VoiceOver) when a MenuBarMenu widget is opened.

Source

fn dialog_label(&self) -> String

Label read out by accessibility tools (TalkBack or VoiceOver) when a dialog widget is opened.

Source

fn alert_dialog_label(&self) -> String

Label read out by accessibility tools (TalkBack or VoiceOver) when an alert dialog widget is opened.

Source

fn search_field_label(&self) -> String

Label indicating that a text field is a search field. This will be used as a hint text in the text field.

Source

fn current_date_label(&self) -> String

Label indicating that a given date is the current date.

Source

fn selected_date_label(&self) -> String

The semantics label to describe the selected date in the calendar picker invoked using showDatePicker.

Source

fn scrim_label(&self) -> String

Label for the scrim rendered underneath a BottomSheet.

Source

fn bottom_sheet_label(&self) -> String

Label for a BottomSheet, used as the modalRouteContentName of the scrim_on_tap_hint.

Source

fn scrim_on_tap_hint(&self, modal_route_content_name: &str) -> String

Hint text announced when tapping on the scrim underneath the content of a modal route.

Source

fn time_of_day_format(&self, always_use_24_hour_format: bool) -> TimeOfDayFormat

The format used to lay out the time picker.

The documentation for TimeOfDayFormat enum values provides details on each supported layout.

Source

fn script_category(&self) -> ScriptCategory

Defines the localized TextStyle geometry for ThemeData.textTheme.

The script_category defines the overall geometry of a TextTheme for the Typography.geometryThemeFor method in terms of the three language categories defined in https://material.io/go/design-typography.

Generally speaking, font sizes for ScriptCategory::Tall and ScriptCategory::Dense scripts - for text styles that are smaller than the title style - are one unit larger than they are for ScriptCategory::EnglishLike scripts.

Source

fn format_decimal(&self, number: i64) -> String

Formats number as a decimal, inserting locale-appropriate thousands separators as necessary.

Source

fn format_hour( &self, time_of_day: &TimeOfDay, always_use_24_hour_format: bool, ) -> String

Formats hour in the given time of day according to the value of time_of_day_format.

If always_use_24_hour_format is true, formats hour using HourFormat::HH rather than the default for the current locale.

Source

fn format_minute(&self, time_of_day: &TimeOfDay) -> String

Formats minute in the given time of day according to the value of time_of_day_format.

Source

fn format_time_of_day( &self, time_of_day: &TimeOfDay, always_use_24_hour_format: bool, ) -> String

Formats time_of_day according to the value of time_of_day_format.

If always_use_24_hour_format is true, formats hour using HourFormat::HH rather than the default for the current locale. This value is usually passed from MediaQueryData.alwaysUse24HourFormat, which has platform- specific behavior.

Source

fn format_year(&self, app: &App, date: &DateTime) -> String

Full unabbreviated year format, e.g. 2017 rather than 17.

Source

fn format_compact_date(&self, app: &App, date: &DateTime) -> String

Formats the date in a compact format.

Usually just the numeric values for the for day, month and year are used.

Examples:

  • US English: 02/21/2019
  • Russian: 21.02.2019

See also:

Source

fn format_short_date(&self, app: &App, date: &DateTime) -> String

Formats the date using a short-width format.

Includes the abbreviation of the month, the day and year.

Examples:

  • US English: Feb 21, 2019
  • Russian: 21 февр. 2019 г.
Source

fn format_medium_date(&self, app: &App, date: &DateTime) -> String

Formats the date using a medium-width format.

Abbreviates month and days of week. This appears in the header of the date picker invoked using showDatePicker.

Examples:

  • US English: Wed, Sep 27
  • Russian: ср, сент. 27
Source

fn format_full_date(&self, app: &App, date: &DateTime) -> String

Formats day of week, month, day of month and year in a long-width format.

Does not abbreviate names. Appears in spoken announcements of the date picker invoked using showDatePicker, when accessibility mode is on.

Examples:

  • US English: Wednesday, September 27, 2017
  • Russian: Среда, Сентябрь 27, 2017
Source

fn format_month_year(&self, app: &App, date: &DateTime) -> String

Formats the month and the year of the given date.

The returned string does not contain the day of the month. This appears in the date picker invoked using showDatePicker.

Source

fn format_short_month_day(&self, app: &App, date: &DateTime) -> String

Formats the month and day of the given date.

Examples:

  • US English: Feb 21
  • Russian: 21 февр.
Source

fn parse_compact_date( &self, app: &App, input_string: Option<&str>, ) -> Option<DateTime>

Converts the given compact date formatted string into a DateTime.

The format of the string must be a valid compact date format for the given locale. If the text doesn’t represent a valid date, None will be returned.

See also:

Source

fn narrow_weekdays(&self) -> Vec<String>

List of week day names in narrow format, usually 1- or 2-letter abbreviations of full names.

The list begins with the value corresponding to Sunday and ends with Saturday. Use first_day_of_week_index to find the first day of week in this list.

Examples:

  • US English: S, M, T, W, T, F, S
  • Russian: вс, пн, вт, ср, чт, пт, сб - notice that the list begins with вс (Sunday) even though the first day of week for Russian is Monday.
Source

fn first_day_of_week_index(&self) -> i32

Index of the first day of week, where 0 points to Sunday, and 6 points to Saturday.

This getter is compatible with narrow_weekdays. For example:

let localizations = <dyn MaterialLocalizations>::of(app, context);
// The name of the first day of week for the current locale.
let first_day_of_week = &localizations.narrow_weekdays()[localizations.first_day_of_week_index() as usize];
Source

fn date_separator(&self) -> String

The character string used to separate the parts of a compact date format (i.e. mm/dd/yyyy has a separator of ‘/’).

Source

fn date_help_text(&self) -> String

The help text used on an empty InputDatePickerFormField to indicate to the user the date format being asked for.

Source

fn select_year_semantics_label(&self) -> String

The semantic label used to announce when the user has entered the year selection mode of the CalendarDatePicker which is used in the data picker dialog created with showDatePicker.

Source

fn unspecified_date(&self) -> String

The label used to indicate a date that has not been entered or selected yet in the date picker.

Source

fn unspecified_date_range(&self) -> String

The label used to indicate a date range that has not been entered or selected yet in the date range picker.

Source

fn date_input_label(&self) -> String

The label used to describe the text field used in an InputDatePickerFormField.

Source

fn date_range_start_label(&self) -> String

The label used for the starting date input field in the date range picker created with showDateRangePicker.

Source

fn date_range_end_label(&self) -> String

The label used for the ending date input field in the date range picker created with showDateRangePicker.

Source

fn date_range_start_date_semantic_label(&self, formatted_date: &str) -> String

The semantics label used for the selected start date in the date range picker’s day grid.

Source

fn date_range_end_date_semantic_label(&self, formatted_date: &str) -> String

The semantics label used for the selected end date in the date range picker’s day grid.

Source

fn invalid_date_format_label(&self) -> String

Error message displayed to the user when they have entered a text string in an InputDatePickerFormField that is not in a valid date format.

Source

fn invalid_date_range_label(&self) -> String

Error message displayed to the user when they have entered an invalid date range in the input mode of the date range picker created with showDateRangePicker.

Source

fn date_out_of_range_label(&self) -> String

Error message displayed to the user when they have entered a date that is outside the valid range for the date picker. showDateRangePicker.

Source

fn save_button_label(&self) -> String

Label for a ‘SAVE’ button. Currently used by the full screen mode of the date range picker.

Source

fn date_picker_help_text(&self) -> String

Label used in the header of the date picker dialog created with showDatePicker.

Source

fn date_range_picker_help_text(&self) -> String

Label used in the header of the date range picker dialog created with showDateRangePicker.

Source

fn calendar_mode_button_label(&self) -> String

Tooltip used for the calendar mode button of the date pickers.

Source

fn input_date_mode_button_label(&self) -> String

Tooltip used for the text input mode button of the date pickers.

Source

fn time_picker_dial_help_text(&self) -> String

Label used in the header of the time picker dialog created with showTimePicker when in TimePickerEntryMode.dial.

Source

fn time_picker_input_help_text(&self) -> String

Label used in the header of the time picker dialog created with showTimePicker when in TimePickerEntryMode.input.

Source

fn time_picker_hour_label(&self) -> String

Label used below the hour text field of the time picker dialog created with showTimePicker when in TimePickerEntryMode.input.

Source

fn time_picker_minute_label(&self) -> String

Label used below the minute text field of the time picker dialog created with showTimePicker when in TimePickerEntryMode.input.

Source

fn invalid_time_label(&self) -> String

Error message for the time picker dialog created with showTimePicker when in TimePickerEntryMode.input.

Source

fn dial_mode_button_label(&self) -> String

Tooltip used to put the time picker into TimePickerEntryMode.dial.

Source

fn input_time_mode_button_label(&self) -> String

Tooltip used to put the time picker into TimePickerEntryMode.input.

Source

fn signed_in_label(&self) -> String

The semantics label used to indicate which account is signed in the UserAccountsDrawerHeader widget.

Source

fn hide_accounts_label(&self) -> String

The semantics label used for the button on UserAccountsDrawerHeader that hides the list of accounts.

Source

fn show_accounts_label(&self) -> String

The semantics label used for the button on UserAccountsDrawerHeader that shows the list of accounts.

Source

fn reorder_item_to_start(&self) -> String

👎Deprecated:

Use the reorderItemToStart from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.

The semantics label used for ReorderableListView to reorder an item in the list to the start of the list.

Source

fn reorder_item_to_end(&self) -> String

👎Deprecated:

Use the reorderItemToEnd from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.

The semantics label used for ReorderableListView to reorder an item in the list to the end of the list.

Source

fn reorder_item_up(&self) -> String

👎Deprecated:

Use the reorderItemUp from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.

The semantics label used for ReorderableListView to reorder an item in the list one space up the list.

Source

fn reorder_item_down(&self) -> String

👎Deprecated:

Use the reorderItemDown from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.

The semantics label used for ReorderableListView to reorder an item in the list one space down the list.

Source

fn reorder_item_left(&self) -> String

👎Deprecated:

Use the reorderItemLeft from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.

The semantics label used for ReorderableListView to reorder an item in the list one space left in the list.

Source

fn reorder_item_right(&self) -> String

👎Deprecated:

Use the reorderItemRight from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.

The semantics label used for ReorderableListView to reorder an item in the list one space right in the list.

Source

fn remaining_text_field_character_count(&self, remaining: i32) -> String

The label for the TextField’s character counter.

Source

fn refresh_indicator_semantic_label(&self) -> String

The default semantics label for a RefreshIndicator.

Source

fn keyboard_key_alt(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.alt.

Source

fn keyboard_key_alt_graph(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.altGraph.

Source

fn keyboard_key_backspace(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.backspace.

Source

fn keyboard_key_caps_lock(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.capsLock.

Source

fn keyboard_key_channel_down(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.channelDown.

Source

fn keyboard_key_channel_up(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.channelUp.

Source

fn keyboard_key_control(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.control.

Source

fn keyboard_key_delete(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.delete.

Source

fn keyboard_key_eject(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.eject.

Source

fn keyboard_key_end(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.end.

Source

fn keyboard_key_escape(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.escape.

Source

fn keyboard_key_fn(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.fn.

Source

fn keyboard_key_home(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.home.

Source

fn keyboard_key_insert(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.insert.

Source

fn keyboard_key_meta(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.meta.

Source

fn keyboard_key_meta_mac_os(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.meta on macOS.

Source

fn keyboard_key_meta_windows(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.meta on Windows.

Source

fn keyboard_key_num_lock(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numLock.

Source

fn keyboard_key_numpad1(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad1.

Source

fn keyboard_key_numpad2(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad2.

Source

fn keyboard_key_numpad3(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad3.

Source

fn keyboard_key_numpad4(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad4.

Source

fn keyboard_key_numpad5(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad5.

Source

fn keyboard_key_numpad6(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad6.

Source

fn keyboard_key_numpad7(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad7.

Source

fn keyboard_key_numpad8(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad8.

Source

fn keyboard_key_numpad9(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad9.

Source

fn keyboard_key_numpad0(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpad0.

Source

fn keyboard_key_numpad_add(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadAdd.

Source

fn keyboard_key_numpad_comma(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadComma.

Source

fn keyboard_key_numpad_decimal(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadDecimal.

Source

fn keyboard_key_numpad_divide(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadDivide.

Source

fn keyboard_key_numpad_enter(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadEnter.

Source

fn keyboard_key_numpad_equal(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadEqual.

Source

fn keyboard_key_numpad_multiply(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadMultiply.

Source

fn keyboard_key_numpad_paren_left(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadParenLeft.

Source

fn keyboard_key_numpad_paren_right(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadParenRight.

Source

fn keyboard_key_numpad_subtract(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.numpadSubtract.

Source

fn keyboard_key_page_down(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.pageDown.

Source

fn keyboard_key_page_up(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.pageUp.

Source

fn keyboard_key_power(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.power.

Source

fn keyboard_key_power_off(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.powerOff.

Source

fn keyboard_key_print_screen(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.printScreen.

Source

fn keyboard_key_scroll_lock(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.scrollLock.

Source

fn keyboard_key_select(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.select.

Source

fn keyboard_key_shift(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.shift.

Source

fn keyboard_key_space(&self) -> String

The shortcut label for the keyboard key LogicalKeyboardKey.space.

Provided Methods§

Source

fn expanded_icon_tap_hint(&self) -> String

The semantics hint to describe the tap action on an expanded ExpandIcon.

Source

fn collapsed_icon_tap_hint(&self) -> String

The semantics hint to describe the tap action on a collapsed ExpandIcon.

Source

fn expansion_tile_expanded_hint(&self) -> String

The semantics hint to describe the tap action on an expanded 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

The semantics hint to describe the tap action on a collapsed 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

The semantics hint to describe the tap action on an expanded ExpansionTile.

Source

fn expansion_tile_collapsed_tap_hint(&self) -> String

The semantics hint to describe the tap action on a collapsed ExpansionTile.

Source

fn expanded_hint(&self) -> String

The semantics hint to describe the ExpansionTile expanded state.

Source

fn collapsed_hint(&self) -> String

The semantics hint to describe the ExpansionTile collapsed state.

Implementations§

Source§

impl dyn MaterialLocalizations

Source

pub fn of(app: &mut App, context: BuildContext) -> Rc<dyn MaterialLocalizations>

The MaterialLocalizations from the closest Localizations instance that encloses the given context.

If no MaterialLocalizations are available in the given context, this method throws an exception.

This method is just a convenient shorthand for: Localizations::of::<dyn MaterialLocalizations>(app, context).

References to the localized resources defined by this class are typically written in terms of this method. For example:

tooltip: <dyn MaterialLocalizations>::of(app, context).back_button_tooltip(),

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§