logo
pub struct MaterialApp {
Show 34 fields pub key: Key, pub navigator_key: GlobalKey<NavigatorState>, pub scaffold_messenger_key: GlobalKey<ScaffoldMessengerState>, pub home: Box<dyn Widget>, pub routes: HashMap<String, Box<WidgetBuilder>>, pub initial_route: String, pub on_generate_route: Option<Box<dyn RouteFactory<String>>>, pub on_generate_initial_routes: Option<Box<dyn InitialRouteListFactory>>, pub on_unknown_route: Option<Box<dyn RouteFactory<String>>>, pub navigator_observers: Vec<NavigatorObserver>, pub builder: Option<Box<dyn TransitionBuilder>>, pub title: String, pub on_generate_title: Option<Box<dyn GenerateAppTitle>>, pub color: Color, pub theme: ThemeData, pub dark_theme: ThemeData, pub high_contrast_theme: ThemeData, pub high_contrast_dark_theme: ThemeData, pub theme_mode: ThemeMode, pub locale: Locale, pub localizations_delegates: Vec<LocalizationsDelegate>, pub locale_list_resolution_callback: Option<Box<dyn LocaleListResolutionCallback>>, pub locale_resolution_callback: Option<Box<dyn LocaleResolutionCallback>>, pub supported_locales: Vec<Locale>, pub debug_show_material_grid: bool, pub show_performance_overlay: bool, pub checkerboard_raster_cache_images: bool, pub checkerboard_offscreen_layers: bool, pub show_semantics_debugger: bool, pub debug_show_checked_mode_banner: bool, pub shortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>, pub restoration_scope_id: String, pub scroll_behavior: ScrollBehavior, pub use_inherited_media_query: bool,
}

Fields

key: Keynavigator_key: GlobalKey<NavigatorState>scaffold_messenger_key: GlobalKey<ScaffoldMessengerState>home: Box<dyn Widget>routes: HashMap<String, Box<WidgetBuilder>>initial_route: Stringon_generate_route: Option<Box<dyn RouteFactory<String>>>on_generate_initial_routes: Option<Box<dyn InitialRouteListFactory>>on_unknown_route: Option<Box<dyn RouteFactory<String>>>navigator_observers: Vec<NavigatorObserver>builder: Option<Box<dyn TransitionBuilder>>title: Stringon_generate_title: Option<Box<dyn GenerateAppTitle>>color: Colortheme: ThemeDatadark_theme: ThemeDatahigh_contrast_theme: ThemeDatahigh_contrast_dark_theme: ThemeDatatheme_mode: ThemeModelocale: Localelocalizations_delegates: Vec<LocalizationsDelegate>locale_list_resolution_callback: Option<Box<dyn LocaleListResolutionCallback>>locale_resolution_callback: Option<Box<dyn LocaleResolutionCallback>>supported_locales: Vec<Locale>debug_show_material_grid: boolshow_performance_overlay: boolcheckerboard_raster_cache_images: boolcheckerboard_offscreen_layers: boolshow_semantics_debugger: booldebug_show_checked_mode_banner: boolshortcuts: HashMap<ShortcutActivator, Box<dyn Intent>>restoration_scope_id: Stringscroll_behavior: ScrollBehavioruse_inherited_media_query: bool

Trait Implementations

Returns the “default value” for a type. Read more

Inflates this configuration to a concrete instance

The widdget key

The control x position, relative to its container

The control y position, relative to its container

The control width

The control height

The control minimum width

The control minimum height

The control maximum width

The control maximum height

The control parent, if any

The control depth. Usually set internally

Whether or not the control is visible at creation

Whether or not the control responds to mouse input

Whether or not the control responds to key input

Whether or not the control emits render signals from the canvas render call

Internal. Internal parent visibility for creating sub controls.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.