flutter/examples/api/lib/material
Greg Spencer 2d9ad26086
Implements a PlatformMenuBar widget and associated data structures (#100274)
Implements a PlatformMenuBar widget and associated data structures for defining menu bars that use native APIs for rendering.

This PR includes:
A PlatformMenuBar class, which is a widget that menu bar data can be attached to for sending to the platform.
A PlatformMenuDelegate base, which is the type taken by a new WidgetsBinding.platformMenuDelegate.
An implementation of the above in DefaultPlatformMenuDelegate that talks to the built-in "flutter/menu" channel to talk to the built-in platform implementation. The delegate is so that a plugin could override with its own delegate and provide other platforms with native menu support using the same widgets to define the menus.
This is the framework part of the implementation. The engine part will be in flutter/engine#32080 (and flutter/engine#32358)
2022-04-04 15:03:10 -07:00
..
about Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
app_bar Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
autocomplete complete migration of flutter repo to Object.hash* (#99505) 2022-03-04 12:56:21 -08:00
banner Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
bottom_app_bar Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
bottom_navigation_bar Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
bottom_sheet Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
card Migrate Card widget to Material 3. (#100532) 2022-03-22 13:46:56 -07:00
checkbox Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
checkbox_list_tile Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
chip Ban sync*/async* from user facing code (#95050) 2021-12-12 13:05:03 -08:00
data_table Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
date_picker Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
dialog Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
divider Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
dropdown Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
elevated_button Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
expansion_panel Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
expansion_tile Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
flexible_space_bar Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
floating_action_button Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
floating_action_button_location Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
icon_button Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
ink Add Ink.image clip examples (#93799) 2021-12-17 02:54:14 -08:00
ink_well Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
input_decorator Add InputDecorator label color on error examples (#93480) 2021-12-08 17:24:08 -08:00
list_tile Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
material_state Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
navigation_bar Add NavigationBar dartpad example (#97046) 2022-03-01 10:14:09 -08:00
navigation_rail Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
outlined_button Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
platform_menu_bar Implements a PlatformMenuBar widget and associated data structures (#100274) 2022-04-04 15:03:10 -07:00
popupmenu Update PopupMenuButton example (#96681) 2022-01-28 14:10:14 -08:00
progress_indicator Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
radio Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
radio_list_tile Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
range_slider Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
refresh_indicator RefreshIndicator: Add an interactive example (#97254) 2022-01-28 02:40:06 -08:00
reorderable_list Replaced the reference to primaryVariant in code example as it will soon be deprecated. (#93351) 2021-11-09 17:49:40 -08:00
scaffold Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
scrollbar Deprecate Scrollbar isAlwaysShown -> thumbVisibility (#96957) 2022-01-24 14:25:15 -08:00
slider Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
snack_bar Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
stepper Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
switch_list_tile Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
tab_controller Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
tabs Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
text_button Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
text_field Clean up examples, remove section markers and --template args (#91133) 2021-10-04 12:16:17 -07:00
text_form_field Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
theme Minor improvements to ThemeExtension example (#100693) 2022-03-30 16:05:27 +02:00
tooltip Tooltip: Add an example for TooltipTriggerMode.manual and add tests for existing Tooltip examples (#100554) 2022-03-25 15:51:06 -07:00