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§
Sourcefn open_app_drawer_tooltip(&self) -> String
fn open_app_drawer_tooltip(&self) -> String
The tooltip for the leading AppBar menu (a.k.a. ‘hamburger’) button.
The BackButton’s tooltip.
The tooltip for the clear button to clear text on SearchAnchor’s search view.
The CloseButton’s tooltip.
The tooltip for the delete button on a Chip.
The tooltip for the more button on an overflowing text selection menu.
Sourcefn next_month_tooltip(&self) -> String
fn next_month_tooltip(&self) -> String
The tooltip for the CalendarDatePicker’s “next month” button.
Sourcefn previous_month_tooltip(&self) -> String
fn previous_month_tooltip(&self) -> String
The tooltip for the CalendarDatePicker’s “previous month” button.
Sourcefn first_page_tooltip(&self) -> String
fn first_page_tooltip(&self) -> String
The tooltip for the PaginatedDataTable’s “first page” button.
Sourcefn last_page_tooltip(&self) -> String
fn last_page_tooltip(&self) -> String
The tooltip for the PaginatedDataTable’s “last page” button.
Sourcefn next_page_tooltip(&self) -> String
fn next_page_tooltip(&self) -> String
The tooltip for the PaginatedDataTable’s “next page” button.
Sourcefn previous_page_tooltip(&self) -> String
fn previous_page_tooltip(&self) -> String
The tooltip for the PaginatedDataTable’s “previous page” button.
The default PopupMenuButton tooltip.
Sourcefn about_list_tile_title(&self, application_name: &str) -> String
fn about_list_tile_title(&self, application_name: &str) -> String
The default title for AboutListTile.
Sourcefn licenses_page_title(&self) -> String
fn licenses_page_title(&self) -> String
Title for the LicensePage widget.
Sourcefn licenses_package_detail_text(&self, license_count: i32) -> String
fn licenses_package_detail_text(&self, license_count: i32) -> String
Subtitle for a package in the LicensePage widget.
Sourcefn 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
Title for the PaginatedDataTable’s row info footer.
Sourcefn rows_per_page_title(&self) -> String
fn rows_per_page_title(&self) -> String
Title for the PaginatedDataTable’s “rows per page” footer.
Sourcefn tab_label(&self, tab_index: i32, tab_count: i32) -> String
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.
Sourcefn selected_row_count_title(&self, selected_row_count: i32) -> String
fn selected_row_count_title(&self, selected_row_count: i32) -> String
Title for the PaginatedDataTable’s selected row count header.
Label for “cancel” buttons and menu items.
Label for “close” buttons and menu items.
Label for “continue” buttons and menu items.
Label for “copy” edit buttons and menu items.
Label for “cut” edit buttons and menu items.
Label for “scan text” OCR edit buttons and menu items.
Label for OK buttons and menu items.
Label for “paste” edit buttons and menu items.
Label for “select all” edit buttons and menu items.
Label for “look up” edit buttons and menu items.
Label for “search web” edit buttons and menu items.
Label for “share” edit buttons and menu items.
Label for the AboutDialog button that shows the LicensePage.
Sourcefn ante_meridiem_abbreviation(&self) -> String
fn ante_meridiem_abbreviation(&self) -> String
The abbreviation for ante meridiem (before noon) shown in the time picker.
Sourcefn post_meridiem_abbreviation(&self) -> String
fn post_meridiem_abbreviation(&self) -> String
The abbreviation for post meridiem (after noon) shown in the time picker.
Sourcefn time_picker_hour_mode_announcement(&self) -> String
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.
Sourcefn time_picker_minute_mode_announcement(&self) -> String
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.
Sourcefn modal_barrier_dismiss_label(&self) -> String
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.
Label read out by accessibility tools (TalkBack or VoiceOver) for a context menu to indicate that a tap dismisses the context menu.
Sourcefn drawer_label(&self) -> String
fn drawer_label(&self) -> String
Label read out by accessibility tools (TalkBack or VoiceOver) when a drawer widget is opened.
Label read out by accessibility tools (TalkBack or VoiceOver) when a popup menu widget is opened.
Label read out by accessibility tools (TalkBack or VoiceOver) when a MenuBarMenu widget is opened.
Sourcefn dialog_label(&self) -> String
fn dialog_label(&self) -> String
Label read out by accessibility tools (TalkBack or VoiceOver) when a dialog widget is opened.
Sourcefn alert_dialog_label(&self) -> String
fn alert_dialog_label(&self) -> String
Label read out by accessibility tools (TalkBack or VoiceOver) when an alert dialog widget is opened.
Sourcefn search_field_label(&self) -> String
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.
Sourcefn current_date_label(&self) -> String
fn current_date_label(&self) -> String
Label indicating that a given date is the current date.
Sourcefn selected_date_label(&self) -> String
fn selected_date_label(&self) -> String
The semantics label to describe the selected date in the calendar picker
invoked using showDatePicker.
Sourcefn scrim_label(&self) -> String
fn scrim_label(&self) -> String
Label for the scrim rendered underneath a BottomSheet.
Sourcefn bottom_sheet_label(&self) -> String
fn bottom_sheet_label(&self) -> String
Label for a BottomSheet, used as the modalRouteContentName of the
scrim_on_tap_hint.
Sourcefn scrim_on_tap_hint(&self, modal_route_content_name: &str) -> String
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.
Sourcefn 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
The format used to lay out the time picker.
The documentation for TimeOfDayFormat enum values provides details on
each supported layout.
Sourcefn script_category(&self) -> ScriptCategory
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.
Sourcefn format_decimal(&self, number: i64) -> String
fn format_decimal(&self, number: i64) -> String
Formats number as a decimal, inserting locale-appropriate thousands
separators as necessary.
Sourcefn format_hour(
&self,
time_of_day: &TimeOfDay,
always_use_24_hour_format: bool,
) -> String
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.
Sourcefn format_minute(&self, time_of_day: &TimeOfDay) -> String
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.
Sourcefn 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
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.
Sourcefn format_year(&self, app: &App, date: &DateTime) -> String
fn format_year(&self, app: &App, date: &DateTime) -> String
Full unabbreviated year format, e.g. 2017 rather than 17.
Sourcefn format_compact_date(&self, app: &App, date: &DateTime) -> String
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:
parse_compact_date, which will convert a compact date string to aDateTime.
Sourcefn format_short_date(&self, app: &App, date: &DateTime) -> String
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 г.
Sourcefn format_medium_date(&self, app: &App, date: &DateTime) -> String
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
Sourcefn format_full_date(&self, app: &App, date: &DateTime) -> String
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
Sourcefn format_month_year(&self, app: &App, date: &DateTime) -> String
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.
Sourcefn format_short_month_day(&self, app: &App, date: &DateTime) -> String
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 февр.
Sourcefn parse_compact_date(
&self,
app: &App,
input_string: Option<&str>,
) -> Option<DateTime>
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:
format_compact_date, which will convert aDateTimeinto a string in the compact format.
Sourcefn narrow_weekdays(&self) -> Vec<String>
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.
Sourcefn first_day_of_week_index(&self) -> i32
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];Sourcefn date_separator(&self) -> String
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 ‘/’).
Sourcefn date_help_text(&self) -> String
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.
Sourcefn select_year_semantics_label(&self) -> String
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.
Sourcefn unspecified_date(&self) -> String
fn unspecified_date(&self) -> String
The label used to indicate a date that has not been entered or selected yet in the date picker.
Sourcefn unspecified_date_range(&self) -> String
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.
Sourcefn date_input_label(&self) -> String
fn date_input_label(&self) -> String
The label used to describe the text field used in an InputDatePickerFormField.
Sourcefn date_range_start_label(&self) -> String
fn date_range_start_label(&self) -> String
The label used for the starting date input field in the date range picker
created with showDateRangePicker.
Sourcefn date_range_end_label(&self) -> String
fn date_range_end_label(&self) -> String
The label used for the ending date input field in the date range picker
created with showDateRangePicker.
Sourcefn date_range_start_date_semantic_label(&self, formatted_date: &str) -> String
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.
Sourcefn date_range_end_date_semantic_label(&self, formatted_date: &str) -> String
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.
Sourcefn invalid_date_format_label(&self) -> String
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.
Sourcefn invalid_date_range_label(&self) -> String
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.
Sourcefn date_out_of_range_label(&self) -> String
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.
Label for a ‘SAVE’ button. Currently used by the full screen mode of the date range picker.
Sourcefn date_picker_help_text(&self) -> String
fn date_picker_help_text(&self) -> String
Label used in the header of the date picker dialog created with
showDatePicker.
Sourcefn date_range_picker_help_text(&self) -> String
fn date_range_picker_help_text(&self) -> String
Label used in the header of the date range picker dialog created with
showDateRangePicker.
Tooltip used for the calendar mode button of the date pickers.
Tooltip used for the text input mode button of the date pickers.
Sourcefn time_picker_dial_help_text(&self) -> String
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.
Sourcefn time_picker_input_help_text(&self) -> String
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.
Sourcefn time_picker_hour_label(&self) -> String
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.
Sourcefn time_picker_minute_label(&self) -> String
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.
Sourcefn invalid_time_label(&self) -> String
fn invalid_time_label(&self) -> String
Error message for the time picker dialog created with showTimePicker
when in TimePickerEntryMode.input.
Tooltip used to put the time picker into TimePickerEntryMode.dial.
Tooltip used to put the time picker into TimePickerEntryMode.input.
Sourcefn signed_in_label(&self) -> String
fn signed_in_label(&self) -> String
The semantics label used to indicate which account is signed in the
UserAccountsDrawerHeader widget.
Sourcefn hide_accounts_label(&self) -> String
fn hide_accounts_label(&self) -> String
The semantics label used for the button on UserAccountsDrawerHeader that
hides the list of accounts.
Sourcefn show_accounts_label(&self) -> String
fn show_accounts_label(&self) -> String
The semantics label used for the button on UserAccountsDrawerHeader that
shows the list of accounts.
Sourcefn reorder_item_to_start(&self) -> String
👎Deprecated: Use the reorderItemToStart from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
fn reorder_item_to_start(&self) -> String
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.
Sourcefn reorder_item_to_end(&self) -> String
👎Deprecated: Use the reorderItemToEnd from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
fn reorder_item_to_end(&self) -> String
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.
Sourcefn reorder_item_up(&self) -> String
👎Deprecated: Use the reorderItemUp from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
fn reorder_item_up(&self) -> String
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.
Sourcefn reorder_item_down(&self) -> String
👎Deprecated: Use the reorderItemDown from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
fn reorder_item_down(&self) -> String
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.
Sourcefn reorder_item_left(&self) -> String
👎Deprecated: Use the reorderItemLeft from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
fn reorder_item_left(&self) -> String
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.
Sourcefn reorder_item_right(&self) -> String
👎Deprecated: Use the reorderItemRight from WidgetsLocalizations instead. This feature was deprecated after v3.10.0-2.0.pre.
fn reorder_item_right(&self) -> String
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.
Sourcefn remaining_text_field_character_count(&self, remaining: i32) -> String
fn remaining_text_field_character_count(&self, remaining: i32) -> String
The label for the TextField’s character counter.
Sourcefn refresh_indicator_semantic_label(&self) -> String
fn refresh_indicator_semantic_label(&self) -> String
The default semantics label for a RefreshIndicator.
Sourcefn keyboard_key_alt(&self) -> String
fn keyboard_key_alt(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.alt.
Sourcefn keyboard_key_alt_graph(&self) -> String
fn keyboard_key_alt_graph(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.altGraph.
Sourcefn keyboard_key_backspace(&self) -> String
fn keyboard_key_backspace(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.backspace.
Sourcefn keyboard_key_caps_lock(&self) -> String
fn keyboard_key_caps_lock(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.capsLock.
Sourcefn keyboard_key_channel_down(&self) -> String
fn keyboard_key_channel_down(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.channelDown.
Sourcefn keyboard_key_channel_up(&self) -> String
fn keyboard_key_channel_up(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.channelUp.
Sourcefn keyboard_key_control(&self) -> String
fn keyboard_key_control(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.control.
Sourcefn keyboard_key_delete(&self) -> String
fn keyboard_key_delete(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.delete.
Sourcefn keyboard_key_eject(&self) -> String
fn keyboard_key_eject(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.eject.
Sourcefn keyboard_key_end(&self) -> String
fn keyboard_key_end(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.end.
Sourcefn keyboard_key_escape(&self) -> String
fn keyboard_key_escape(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.escape.
Sourcefn keyboard_key_fn(&self) -> String
fn keyboard_key_fn(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.fn.
Sourcefn keyboard_key_home(&self) -> String
fn keyboard_key_home(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.home.
Sourcefn keyboard_key_insert(&self) -> String
fn keyboard_key_insert(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.insert.
Sourcefn keyboard_key_meta(&self) -> String
fn keyboard_key_meta(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.meta.
Sourcefn keyboard_key_meta_mac_os(&self) -> String
fn keyboard_key_meta_mac_os(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.meta on macOS.
Sourcefn keyboard_key_meta_windows(&self) -> String
fn keyboard_key_meta_windows(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.meta on Windows.
Sourcefn keyboard_key_num_lock(&self) -> String
fn keyboard_key_num_lock(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numLock.
Sourcefn keyboard_key_numpad1(&self) -> String
fn keyboard_key_numpad1(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad1.
Sourcefn keyboard_key_numpad2(&self) -> String
fn keyboard_key_numpad2(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad2.
Sourcefn keyboard_key_numpad3(&self) -> String
fn keyboard_key_numpad3(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad3.
Sourcefn keyboard_key_numpad4(&self) -> String
fn keyboard_key_numpad4(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad4.
Sourcefn keyboard_key_numpad5(&self) -> String
fn keyboard_key_numpad5(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad5.
Sourcefn keyboard_key_numpad6(&self) -> String
fn keyboard_key_numpad6(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad6.
Sourcefn keyboard_key_numpad7(&self) -> String
fn keyboard_key_numpad7(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad7.
Sourcefn keyboard_key_numpad8(&self) -> String
fn keyboard_key_numpad8(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad8.
Sourcefn keyboard_key_numpad9(&self) -> String
fn keyboard_key_numpad9(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad9.
Sourcefn keyboard_key_numpad0(&self) -> String
fn keyboard_key_numpad0(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpad0.
Sourcefn keyboard_key_numpad_add(&self) -> String
fn keyboard_key_numpad_add(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadAdd.
Sourcefn keyboard_key_numpad_comma(&self) -> String
fn keyboard_key_numpad_comma(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadComma.
Sourcefn keyboard_key_numpad_decimal(&self) -> String
fn keyboard_key_numpad_decimal(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadDecimal.
Sourcefn keyboard_key_numpad_divide(&self) -> String
fn keyboard_key_numpad_divide(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadDivide.
Sourcefn keyboard_key_numpad_enter(&self) -> String
fn keyboard_key_numpad_enter(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadEnter.
Sourcefn keyboard_key_numpad_equal(&self) -> String
fn keyboard_key_numpad_equal(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadEqual.
Sourcefn keyboard_key_numpad_multiply(&self) -> String
fn keyboard_key_numpad_multiply(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadMultiply.
Sourcefn keyboard_key_numpad_paren_left(&self) -> String
fn keyboard_key_numpad_paren_left(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadParenLeft.
Sourcefn keyboard_key_numpad_paren_right(&self) -> String
fn keyboard_key_numpad_paren_right(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadParenRight.
Sourcefn keyboard_key_numpad_subtract(&self) -> String
fn keyboard_key_numpad_subtract(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.numpadSubtract.
Sourcefn keyboard_key_page_down(&self) -> String
fn keyboard_key_page_down(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.pageDown.
Sourcefn keyboard_key_page_up(&self) -> String
fn keyboard_key_page_up(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.pageUp.
Sourcefn keyboard_key_power(&self) -> String
fn keyboard_key_power(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.power.
Sourcefn keyboard_key_power_off(&self) -> String
fn keyboard_key_power_off(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.powerOff.
Sourcefn keyboard_key_print_screen(&self) -> String
fn keyboard_key_print_screen(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.printScreen.
Sourcefn keyboard_key_scroll_lock(&self) -> String
fn keyboard_key_scroll_lock(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.scrollLock.
Sourcefn keyboard_key_select(&self) -> String
fn keyboard_key_select(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.select.
Sourcefn keyboard_key_shift(&self) -> String
fn keyboard_key_shift(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.shift.
Sourcefn keyboard_key_space(&self) -> String
fn keyboard_key_space(&self) -> String
The shortcut label for the keyboard key LogicalKeyboardKey.space.
Provided Methods§
Sourcefn expanded_icon_tap_hint(&self) -> String
fn expanded_icon_tap_hint(&self) -> String
The semantics hint to describe the tap action on an expanded ExpandIcon.
Sourcefn collapsed_icon_tap_hint(&self) -> String
fn collapsed_icon_tap_hint(&self) -> String
The semantics hint to describe the tap action on a collapsed ExpandIcon.
Sourcefn expansion_tile_expanded_hint(&self) -> String
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”.
Sourcefn expansion_tile_collapsed_hint(&self) -> String
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”.
Sourcefn expansion_tile_expanded_tap_hint(&self) -> String
fn expansion_tile_expanded_tap_hint(&self) -> String
The semantics hint to describe the tap action on an expanded ExpansionTile.
Sourcefn expansion_tile_collapsed_tap_hint(&self) -> String
fn expansion_tile_collapsed_tap_hint(&self) -> String
The semantics hint to describe the tap action on a collapsed ExpansionTile.
Sourcefn expanded_hint(&self) -> String
fn expanded_hint(&self) -> String
The semantics hint to describe the ExpansionTile expanded state.
Sourcefn collapsed_hint(&self) -> String
fn collapsed_hint(&self) -> String
The semantics hint to describe the ExpansionTile collapsed state.
Implementations§
Source§impl dyn MaterialLocalizations
impl dyn MaterialLocalizations
Sourcepub fn of(app: &mut App, context: BuildContext) -> Rc<dyn MaterialLocalizations>
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".